本笔记为阿里云天池龙珠计划SQL训练营的学习内容,链接为:https://tianchi.aliyun.com/specials/promotion/aicampsql;
CREATE TABLE Addressbook
(
regist_no int NOT NULL,
name varchar(128) NOT NULL,
address varchar(256) NOT NULL,
tel_no char(10),
mail_address char(20),
primary key(regist_no)
);
#创建新表
ALTER table addressbook ADD COLUMN postal_code CHAR(8) NOT NULL;
#添加列
DROP table addressbook;
#删掉该表