oracle一些操作

给表增加新的字段

alter table tablename add column type;
如:alter table items add price number(3);

 

删除表中的字段

alter table tablename drop column columnname;
如:alter table items drop column price;

 

修改表中字段的数据类型

alter table tablename modify column type;
如:alter table items modify price varchar2(12)

 

猜你喜欢

转载自347426567.iteye.com/blog/1983383