[MySql] 외래키 삭제

Mineru·2022년 7월 14일
0
# 해당 테이블에 외래키 조회
select * from information_schema.table_constraints where table_name = '테이블명';

# 삭제
alter table '테이블명' drop foreign key '외래키명';

참고

https://allg.tistory.com/37

profile
Daily Coding

0개의 댓글