관리 메뉴

개발 노트

database error : [42000][1064] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'corona_Question' (Question_num) on delete cascade 본문

인턴 앱 개발 : 20.07.06~08.31/DataBase : Datagrip

database error : [42000][1064] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'corona_Question' (Question_num) on delete cascade

hayoung.dev 2020. 7. 28. 09:56

데이터베이스나 datagrip이나 MariaDB에서 하단의 오류가 발생한 경우

 

오류 내용 :

[42000][1064] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'corona_Question' (Question_num) on delete cascade

 

테이블 명에 썼던 '' 작은 따옴표를 삭제하였더니 해결되었다.

다른 컴퓨터에서는 작동이 되는 것을 보면 버전 차이 문제인 듯 하다.

반응형