~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/show.rst

  • Committer: lbieber
  • Date: 2010-10-01 12:16:18 UTC
  • mfrom: (1802.1.1 fix-bug-651256)
  • Revision ID: lbieber@orisndriz08-20101001121618-uqcboygpjwbiglem
Merge Vijay - fix bug 651256 - Remove --help-extended

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