- 12.4.5.1.
SHOW AUTHORS
Syntax - 12.4.5.2.
SHOW BINARY LOGS
Syntax - 12.4.5.3.
SHOW BINLOG EVENTS
Syntax - 12.4.5.4.
SHOW CHARACTER SET
Syntax - 12.4.5.5.
SHOW COLLATION
Syntax - 12.4.5.6.
SHOW COLUMNS
Syntax - 12.4.5.7.
SHOW CONTRIBUTORS
Syntax - 12.4.5.8.
SHOW CREATE DATABASE
Syntax - 12.4.5.9.
SHOW CREATE EVENT
Syntax - 12.4.5.10.
SHOW CREATE FUNCTION
Syntax - 12.4.5.11.
SHOW CREATE PROCEDURE
Syntax - 12.4.5.12.
SHOW CREATE TABLE
Syntax - 12.4.5.13.
SHOW CREATE TRIGGER
Syntax - 12.4.5.14.
SHOW CREATE VIEW
Syntax - 12.4.5.15.
SHOW DATABASES
Syntax - 12.4.5.16.
SHOW ENGINE
Syntax - 12.4.5.17.
SHOW ENGINES
Syntax - 12.4.5.18.
SHOW ERRORS
Syntax - 12.4.5.19.
SHOW EVENTS
Syntax - 12.4.5.20.
SHOW FUNCTION CODE
Syntax - 12.4.5.21.
SHOW FUNCTION STATUS
Syntax - 12.4.5.22.
SHOW GRANTS
Syntax - 12.4.5.23.
SHOW INDEX
Syntax - 12.4.5.24.
SHOW MASTER STATUS
Syntax - 12.4.5.25.
SHOW OPEN TABLES
Syntax - 12.4.5.26.
SHOW PLUGINS
Syntax - 12.4.5.27.
SHOW PRIVILEGES
Syntax - 12.4.5.28.
SHOW PROCEDURE CODE
Syntax - 12.4.5.29.
SHOW PROCEDURE STATUS
Syntax - 12.4.5.30.
SHOW PROCESSLIST
Syntax - 12.4.5.31.
SHOW PROFILE
Syntax - 12.4.5.32.
SHOW PROFILES
Syntax - 12.4.5.33.
SHOW RELAYLOG EVENTS
Syntax - 12.4.5.34.
SHOW SLAVE HOSTS
Syntax - 12.4.5.35.
SHOW SLAVE STATUS
Syntax - 12.4.5.36.
SHOW STATUS
Syntax - 12.4.5.37.
SHOW TABLE STATUS
Syntax - 12.4.5.38.
SHOW TABLES
Syntax - 12.4.5.39.
SHOW TRIGGERS
Syntax - 12.4.5.40.
SHOW VARIABLES
Syntax - 12.4.5.41.
SHOW WARNINGS
Syntax
SHOW
has many forms that provide
information about databases, tables, columns, or status
information about the server. This section describes those
following:
SHOW AUTHORS SHOW {BINARY | MASTER} LOGS SHOW BINLOG EVENTS [IN 'log_name
'] [FROMpos
] [LIMIT [offset
,]row_count
] SHOW CHARACTER SET [like_or_where
] SHOW COLLATION [like_or_where
] SHOW [FULL] COLUMNS FROMtbl_name
[FROMdb_name
] [like_or_where
] SHOW CONTRIBUTORS SHOW CREATE DATABASEdb_name
SHOW CREATE EVENTevent_name
SHOW CREATE FUNCTIONfunc_name
SHOW CREATE PROCEDUREproc_name
SHOW CREATE TABLEtbl_name
SHOW CREATE TRIGGERtrigger_name
SHOW CREATE VIEWview_name
SHOW DATABASES [like_or_where
] SHOW ENGINEengine_name
{STATUS | MUTEX} SHOW [STORAGE] ENGINES SHOW ERRORS [LIMIT [offset
,]row_count
] SHOW EVENTS SHOW FUNCTION CODEfunc_name
SHOW FUNCTION STATUS [like_or_where
] SHOW GRANTS FORuser
SHOW INDEX FROMtbl_name
[FROMdb_name
] SHOW MASTER STATUS SHOW OPEN TABLES [FROMdb_name
] [like_or_where
] SHOW PLUGINS SHOW PROCEDURE CODEproc_name
SHOW PROCEDURE STATUS [like_or_where
] SHOW PRIVILEGES SHOW [FULL] PROCESSLIST SHOW PROFILE [types
] [FOR QUERYn
] [OFFSETn
] [LIMITn
] SHOW PROFILES SHOW SLAVE HOSTS SHOW SLAVE STATUS SHOW [GLOBAL | SESSION] STATUS [like_or_where
] SHOW TABLE STATUS [FROMdb_name
] [like_or_where
] SHOW [FULL] TABLES [FROMdb_name
] [like_or_where
] SHOW TRIGGERS [FROMdb_name
] [like_or_where
] SHOW [GLOBAL | SESSION] VARIABLES [like_or_where
] SHOW WARNINGS [LIMIT [offset
,]row_count
]like_or_where
: LIKE 'pattern
' | WHEREexpr
If the syntax for a given SHOW
statement includes a LIKE
'
part,
pattern
''
is a
string that can contain the SQL
“pattern
'%
” and
“_
” wildcard characters. The
pattern is useful for restricting statement output to matching
values.
Several SHOW
statements also accept
a WHERE
clause that provides more flexibility
in specifying which rows to display. See
Section 20.31, “Extensions to SHOW
Statements”.
Many MySQL APIs (such as PHP) enable you to treat the result
returned from a SHOW
statement as
you would a result set from a
SELECT
; see
Chapter 22, Connectors and APIs, or your API documentation for
more information. In addition, you can work in SQL with results
from queries on tables in the
INFORMATION_SCHEMA
database, which you cannot
easily do with results from SHOW
statements. See Chapter 20, INFORMATION_SCHEMA
Tables.