SHOW
Syntax
1200
•
Collation
The table's character set and collation.
•
Checksum
The live checksum value (if any).
•
Create_options
Extra options used with
CREATE TABLE
. The original options supplied when
CREATE TABLE
is called are retained and the options reported here may differ from the active table settings and
options.
•
Comment
The comment used when creating the table (or information as to why MySQL could not access the
table information).
In the table comment,
InnoDB
tables report the free space of the tablespace to which the table
belongs. For a table located in the shared tablespace, this is the free space of the shared tablespace.
If you are using multiple tablespaces and the table has its own tablespace, the free space is for only
that table. Free space means the number of completely free 1MB extents minus a safety margin.
Even if free space displays as 0, it may be possible to insert rows as long as new extents need not be
allocated.
For
MEMORY
tables, the
Data_length
,
Max_data_length
, and
Index_length
values approximate
the actual amount of allocated memory. The allocation algorithm reserves memory in large amounts to
reduce the number of allocation operations.
Beginning with MySQL 5.0.3, for
NDBCLUSTER
tables, the output of this statement shows appropriate
values for the
Avg_row_length
and
Data_length
columns, with the exception that
BLOB
columns
are not taken into account. In addition, the number of replicas is now shown in the
Comment
column
(as
number_of_replicas
).
For views, all the fields displayed by
SHOW TABLE STATUS
are
NULL
except that
Name
indicates the
view name and
Comment
says
view
.
13.7.5.34.
SHOW TABLES
Syntax
SHOW [FULL] TABLES [{FROM | IN}
db_name
]
[LIKE '
pattern
' | WHERE
expr
]
SHOW TABLES
lists the non-
TEMPORARY
tables in a given database. You can also get this list using the
mysqlshow db_name
command. The
LIKE
[896]
clause, if present, indicates which table names to
match. The
WHERE
clause can be given to select rows using more general conditions, as discussed in
Section 19.18, “Extensions to
SHOW
Statements”
.
Matching performed by the
LIKE
clause is dependent on the setting of the
lower_case_table_names
[466]
system variable.
Before MySQL 5.0.1, the output from
SHOW TABLES
contains a single column of table names.
Beginning with MySQL 5.0.1, this statement also lists any views in the database. As of MySQL 5.0.2,
the
FULL
modifier is supported such that
SHOW FULL TABLES
displays a second output column.
Values for the second column are
BASE TABLE
for a table and
VIEW
for a view.
If you have no privileges for a base table or view, it does not show up in the output from
SHOW TABLES
or
mysqlshow db_name
.
13.7.5.35.
SHOW TRIGGERS
Syntax
SHOW TRIGGERS [{FROM | IN}
db_name
]
[LIKE '
pattern
' | WHERE
expr
]
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...