Obsidian/Recognition/Programing/Tibero/제약조건 삭제.md

11 lines
199 B
Markdown
Raw Normal View History

2023-08-14 16:19:25 +00:00
> constraint
```sql
SELECT 'ALTER TABLE '||owner||'.'||table_name || ' DROP CONSTRAINT '||constraint_name ||' CASCADE;'
FROM ALL_CONSTRAINTS
WHERE owner <> 'SYS'
AND con_type = 'REFERENTIAL'
```