表格的创建与修改

创建

create table tmp as
select * from tmp

添加列

alter table tmp
add(tmp1 date, tmp2 int);

修改列

alter table tmp
modify tmp1 int

删除列

alter table tmp
drop column tmp2

修改表名

rename table tmp to temp

Published At
Categories with 数据库类
comments powered by Disqus