From the MySQL console, what command displays the schema of any given table?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Flush single app django 1.9
Perhaps the question needs to be slightly more precise here about what is required because it can be read it two different ways. i.e.
Given the accepted answer, the OP clearly intended it to be interpreted the first way. For anybody reading the question the other way try
You can also use shorthand for describe as
desc
for table description.or
You can also use
explain
for table description.See official doc
Will give output like:
for formatted output, or
for the SQL statement that can be used to create a table.
or