개발공부/DB
[Mysql workbench] 에러 1064 : You have an error in your SQL syntax;
랭쥬
2020. 11. 18. 18:45
오류 내용
Error Code: 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 ''2003100005'' at line 1
select * from 테이블이름;
을 했는데 급 뜬 에러..
알고보니 import 한 테이블 명이 숫자로만 이루어져있어서 그런듯
Mysql reserved words에 들어가는 단어를 사용하면 그렇다!
해결방법
이를 위해서는 reserved words를 키보드 ESC밑에 있는 ` `를 사용해 감싸준다.
select * from `테이블이름`;
하니까 완료!