您的位置:首页 > 数据库 > Oracle

ORACLE删除数据报ORA 02292错误解决方法

2017-07-17 13:38 232 查看
--查询表TP_MENU有哪些约束

select * from user_constraints u where u.constraint_name like '%TB_ROLE%';

--失效约束

alter table TP_MENU disable constraint FK_TP_MENU_REFERENCE_TP_MENU cascade;

alter table TB_ROLE_REF_MENU disable constraint FK_TB_ROLE__REFERENCE_TP_MENU cascade;

--删除数据

delete  from tp_menu t where t.status = 0;

--生效约束

alter table TP_MENU enable constraint FK_TP_MENU_REFERENCE_TP_MENU;

alter table TB_ROLE_REF_MENU enable constraint FK_TB_ROLE__REFERENCE_TP_MENU;

--查看数据

select * from TP_MENU;

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: