首页 > 数据库 > Oracle > oracle的alter table用法
增加列
alter table (表名) add (列名 数据类型);
删除列
alter table (表名) drop column (列名);
修改表名
alter table (当前表名) rename to (新表名);
修改列名
alter table (表名) rename column (当前列名) to (新列名);
修改列类型
alter table (表名) modify (列名 数据类型);
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25475930/viewspace-2123711/ ,如需转载,请注明出处,否则将追究法律责任。