MySql에 공백이있는 (where 절에서) 컬럼 이름을 지정하는 방법
ID First Name Last Name
1 Ruby Rails
2 Loop Western
열에 공백이 있으므로
과 같은 쿼리를 작성할 때$sql = "SELECT * FROM Persons where [Last Name] = 'Western' ";
Error, could not list tables MySQL Error: 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 '[Last Name] = 'Western'' at line 1
어떻게 작동 시키나요?
이것은 OP가 스키마에 대한 모든 제어권을 가지고 있지만 ... 동의했습니다. +1 –
이것은 MS Access에서도 작동합니다! – knocte