# Create a table
create table 表名{
列名 列的类型(可加长度) 列的约束(可选),
列名 列的类型(可加长度) 列的约束(可选),
列名 列的类型(可加长度) 列的约束(可选)
);
Case #: Create a book table and the author table
CREATE TABLE book(
id INT,
bname VARCHAR(20),
price DOUBLE,
authorid INT(10),
publishDate DATETIME #出版日期
);
CREATE TABLE author(
id INT,
au_name VARCHAR(20),
nation VARCHAR(10)
);