Home / Databases / MySQL / How can I see the syntax used to create a table in mysql?
How can I see the syntax used to create a table in mysql?
Last updated: 06/18/2009
Use the following command:
SHOW CREATE TABLE [tablename];
This will show you the exact command used to create the table in question, and you can easily edit that command to create similar tables, etc. as you need.