Create database schema document: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
sample result of {{kbd | key =<nowiki>EXPLAIN <table></nowiki>}} | sample result of {{kbd | key =<nowiki>EXPLAIN <table></nowiki>}} | ||
<pre> | <pre> | ||
Field | Field | Type | Null | Key | Default | Extra | ||
Type | |||
Null | |||
Key | |||
Default | |||
Extra | |||
</pre> | </pre> | ||
sample result of {{kbd | key =<nowiki>SHOW FULL COLUMNS FROM <table></nowiki>}} | sample result of {{kbd | key =<nowiki>SHOW FULL COLUMNS FROM <table></nowiki>}} | ||
<pre> | <pre> | ||
Field | Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment | ||
Type | |||
Collation | |||
Null | |||
Key | |||
Default | |||
Extra | |||
Privileges | |||
Comment | |||
</pre> | </pre> | ||
[[Category:MySQL]] | [[Category:MySQL]] | ||
[[Category:Data Science]] | [[Category:Data Science]] | ||
Revision as of 11:38, 15 January 2016
Steps of create database schema document for MySQL
- Using phpMyAdmin
- SQL query: EXPLAIN <table> or SHOW FULL COLUMNS FROM <table>
- Click "Print view (with full texts)"
- Copy the table to other word processors
sample result of EXPLAIN <table>
Field | Type | Null | Key | Default | Extra
sample result of SHOW FULL COLUMNS FROM <table>
Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment