You are on page 1of 1

 CREATE – To create a new table within a database, you use the MySQL CREATE TABLE

statement. The CREATE TABLE statement is one of the most complex statements in MySQL.

CREATE TABLE [IF NOT EXISTS] table_name(

   column_list

);

To define a column for the table in the CREATE TABLE  statement, you use the
following syntax:

column_name data_type(length) [NOT NULL] [DEFAULT value] [AUTO_INCREMENT]

The DESCRIBE statement shows information about the columns in a table.

DESCRIBE table_name;

You might also like