Obsidian/Recognition/Programing/Oracle/기본키 추가&삭제.md

7 lines
132 B
Markdown
Raw Normal View History

2023-08-14 16:19:25 +00:00
#오라클 #Oracle
- 추가
ALTER TABLE table_name ADD PRIMARY KEY (col1, col2);
- 삭제
ALTER TABLE table_name DROP PRIMARY KEY;