运行以下查询以查找表中检查约束的列表,包括它们要检查的内容:
select constraint_name, search_condition
from user_constraints
where table_name = 'Your table name'
and constraint_type = 'C' -- To filter Check constraints alone
Run Code Online (Sandbox Code Playgroud)
复制相关约束的名称并将其粘贴到Alter table drop constraint命令中。
Alter Table Your_table_name
Drop Constraint constraint_name; -- Replace constraint_name from above query result
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1066 次 |
| 最近记录: |