2022-07-28 505
oracle怎样删除列
oracle中删除一个列的方法:
ALTER TABLE 表名 DROP COLUMN 列名
删除多列:(很奇怪不需要 column,切字段名都为简单字段名):
alter table 表名 drop (字段1,字段2)
拓展:
增加列
alter table t_jm_user add USR_EmailValidate CHAR(1) default 'N' not null;
修改列
alter table t_jm_user modify USR_EmailValidate CHAR(1) default 'Y' null;
删除列
alter table t_jm_user drop column USR_EmailValidate;
增加约束
alter table user add constraint FK_user_CLIENT foreign key (COMP_ID) references T_stal (COMP_ID);
删除约束
alter table user drop constraint FK_user_CLIENT ;
原文链接:https://77isp.com/post/2281.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态