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

132 B

#오라클 #Oracle

  • 추가 ALTER TABLE table_name ADD PRIMARY KEY (col1, col2);

  • 삭제 ALTER TABLE table_name DROP PRIMARY KEY;