混水摸魚

[ MYSQL ] – 當有欄位或資料表名稱使用到保留字怎解?

錯誤試範:
select * from group
error msg=> #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 ‘group’ at line 1
解決辦法:
select * from `group`
題外話 如過是mssql 就是加 [ group ]

Leave a Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *