sql server例子 修改字段名 b->c ALTER TABLE aa ADD c int null not null; go update aa set c = b; go alter table aa drop column b; go修改表名 aa-> bb select * into bb from aa; go drop table aa; go select * from bb;修改字段类型 alter table a alter column d VARCHAR(10) not NULLoracle中要用到add,modify等函数,我的oracle在另一套系统中不能调试
修改字段名 b->c
ALTER TABLE aa ADD c int null not null;
go
update aa set c = b;
go
alter table aa drop column b;
go修改表名 aa-> bb
select * into bb
from aa;
go
drop table aa;
go
select * from bb;修改字段类型
alter table a alter column d VARCHAR(10) not NULLoracle中要用到add,modify等函数,我的oracle在另一套系统中不能调试