~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/show.rst

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:30:27 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103033027-lskb6gxwwforfz71
fix docs warning: underline/overline too short for replace.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
SHOW
2
2
=====
3
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.
 
4
All show commans are mapped to table functions in Drizzle. More data can be
 
5
gained by exeucting queries directly on the tables found either the
 
6
DATA_DICTIONARY or the INFORMATION_SCHEMA.
5
7
 
6
8
SHOW SCHEMAS
7
 
------------
8
 
 
9
 
Will list the names of all the schemas in the current catalog.
10
9
 
11
10
SHOW TABLES
12
 
-----------
13
 
 
14
 
Will list the names of all the tables in the current schema.
15
11
 
16
12
SHOW TEMPORARY TABLES
17
 
---------------------
18
13
 
19
14
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
 
----------------------------
 
15
 
 
16
 
 
17
SHOW COLUMNS FROM table_name 
28
18
 
29
19
SHOW INDEXES from table_name
30
 
----------------------------
31
20
 
32
21
 
33
22
SHOW WARNINGS
34
 
-------------
35
 
 
36
 
Shows the warnings and/or errors from the previous command.
37
23
 
38
24
SHOW ERRORS
39
 
-----------
40
 
 
41
 
Shows errors from the previous command.
42
25
 
43
26
SHOW CREATE SCHEMA schema_name
44
 
------------------------------
45
 
 
46
 
Shows the CREATE SCHEMA command required to recreate schema_name.
47
27
 
48
28
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
29
 
55
30
SHOW PROCESSLIST
56
 
----------------
57