MySQL_Workbench

MySQL 컬럼 이름에 공백을 넣으려면 ' '

K2ODING 2021. 12. 7. 18:03
728x90
  • 컬럼 이름에 공백을 넣으면 오류가 난다.

Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'title-- 컬럼이름에 공백 넣고 싶으면 ' ' from books' at line 2

 

컬럼명에 공백을 넣으려한다면 따옴표를 사용