select 'ALTER TABLE '||table_name||' disable constraint '||constraint_name||';' from user_constraints t
where t.constraint_type = 'R' and t.table_name in ('SLI_STATUS')
where t.constraint_type = 'R' and t.table_name in ('SLI_STATUS')
本文提供了一个SQL查询示例,用于生成禁用特定表中引用类型约束的SQL语句。通过查询USER_CONSTRAINTS视图并筛选出表名为'SLI_STATUS'且约束类型为'R'的记录。
940
1524
672

被折叠的 条评论
为什么被折叠?