Created
March 15, 2014 03:46
-
-
Save harveyqing/9561581 to your computer and use it in GitHub Desktop.
Retrive all fields in a specified table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Syntax: | |
mysql> SHOW FULL COLUMNS FROM DBname.table_name | |
Head description: | |
Field :field name | |
Type:field type | |
Collation:char set (above mysql 5.0) | |
Null :can be `NULL` of not | |
Key:index(PRI,unique,index) | |
Default:default value | |
Extra:extra information (has auto_increment or not) | |
Privileges:privileges | |
Comment:comments(above mysql 5.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment