--查询表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;