一、基本操作
注:test为表名
1、新增
create table test(
id int not null,
name varchar(50) not null);
2、删除
drop table test;
3、修改
(1)添加列
alter table test add column 列名 varchar(20) not null
(2)修改列
alter table test change column 列名 列属性 新属性 ;
(3)删除列
alter table test drop column 列名;
4、查询
desc test;