
oracle往dept表中插入dept表中插入重复数据,如何删除唯一约束,以及其它表对dept主键的外键引用
1个回答
展开全部
首先删除emp表中关联dept的外键约束:
alter table EMP drop constraint FK_DEPTNO;
再删除dept的主键约束:
alter table DEPT drop constraint PK_DEPT;
这样就能插入重复数据了。
alter table EMP drop constraint FK_DEPTNO;
再删除dept的主键约束:
alter table DEPT drop constraint PK_DEPT;
这样就能插入重复数据了。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询