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

7 lines
132 B
Markdown

#오라클 #Oracle
- 추가
ALTER TABLE table_name ADD PRIMARY KEY (col1, col2);
- 삭제
ALTER TABLE table_name DROP PRIMARY KEY;