How to get CREATE TABLE QUERY of a table in mysql ?

Use the following query to get CREATE TABLE DDL statement of a table in mysql.

mysql> SHOW CREATE TABLE <table_name>;

Search