Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to show CREATE TABLE syntax in MySQL?

    • 0
    • 1
    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 565
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: