~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/show.rst

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SHOW
 
2
=====
 
3
 
 
4
All SHOW commands are shorthand forms of queries on the INFORMATION_SCHEMA and/or DATA_DICTIONARY. More data can be gained by executing queries directly on the tables found either the DATA_DICTIONARY or the INFORMATION_SCHEMA.
 
5
 
 
6
SHOW SCHEMAS
 
7
------------
 
8
 
 
9
Will list the names of all the schemas in the current catalog.
 
10
 
 
11
SHOW TABLES
 
12
-----------
 
13
 
 
14
Will list the names of all the tables in the current schema.
 
15
 
 
16
SHOW TEMPORARY TABLES
 
17
---------------------
 
18
 
 
19
SHOW TABLE STATUS
 
20
-----------------
 
21
 
 
22
Will show the current status of tables for the current database which are
 
23
currently in the table cache.  A query (such as SELECT) may be needed to add a
 
24
table to the table cache so that it can be shown in this output.
 
25
 
 
26
SHOW COLUMNS FROM table_name
 
27
----------------------------
 
28
 
 
29
SHOW INDEXES from table_name
 
30
----------------------------
 
31
 
 
32
 
 
33
SHOW WARNINGS
 
34
-------------
 
35
 
 
36
Shows the warnings and/or errors from the previous command.
 
37
 
 
38
SHOW ERRORS
 
39
-----------
 
40
 
 
41
Shows errors from the previous command.
 
42
 
 
43
SHOW CREATE SCHEMA schema_name
 
44
------------------------------
 
45
 
 
46
Shows the CREATE SCHEMA command required to recreate schema_name.
 
47
 
 
48
SHOW CREATE TABLE table_name
 
49
----------------------------
 
50
 
 
51
Shows the CREATE TABLE statement used to create the table table_name.  Please
 
52
note the AUTO_INCREMENT in this is the AUTO_INCREMENT specified at CREATE or
 
53
ALTER TABLE time, not the current AUTO_INCREMENT value.
 
54
 
 
55
SHOW PROCESSLIST
 
56
----------------
 
57