步骤:
- 查询表数据
- 查看表的结构
- 表中的列名添加对应的数据
- 表中添加一列
SELECT * from customers;--查询customers表数据
desc customers;--查看表结构
insert into customers(cust_id,cust_name,cust_address,cust_city,cust_email) VALUES(1000007,'cdy','sheng','shengz','1143221@qq.com');--往customers表里列名添加对应数据
alter table customers add column cust_stu varchar(20) not null;--在customers表里添加一列