Name
DESC
Synopsis
DESCRIBEtable
[column
] DESCtable
[column
]
Gives information about a table or column. While this statement works
as advertised, its functionality is available (along with much more)
in the SHOW
statement. This statement is included
solely for compatibility with Oracle SQL. The optional column name
can contain SQL wildcards, in which case information will be
displayed for all matching columns.
Example
# Describe the layout of the table 'messy' DESCRIBE messy # Show the information about any columns starting with 'my_' in the 'big' table. # Remember: '_' is a wildcard, too, so it must be escaped to be used literally. DESC big my\_%
Get MySQL and mSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.