Sometimes we need to check the CREATE TABLE syntax for already created table in the database. When we need to check what kind of columns and what datatype a column has in a table then we require the CREATE TABLE syntax for that table.
Syntax
show create table table_name;
Example: Suppose we have a table named "user" in the database and we want to see structure of the table "user" then we'll use the below statement
show create table user;
Hope this will help you :)
0 Comment(s)