Oracle生成关闭外键的SQL语句时间:2023-03-09 14:44:26 select 'alter table ' || t.table_name || ' disable constraint ' || t.constraint_name || ';' from DBA_CONSTRAINTS t WHERE t.CONSTRAINT_TYPE = 'R' and OWNER = 'SWT_ZCPT' order by t.TABLE_NAME;