语法##
CREATE TABLE语句的基本语法如下:
CREATE TABLE database_name.table_name(
column1 datatype PRIMARY KEY(one or more columns),
column2 datatype,
column3 datatype,
......
columnN datatype
);
实例##
CREATE TABLE DEPARTMENT(
ID INT PRIMARY KEY NOT NULL,
DEPT CHAR (50) NOT NULL,
EMP_ID INT NOT NULL
);
得到创建表的信息##
.schema DEPARTMENT