ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your

  • 問題描述

    ERROR 1064 (42000): 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 ‘-4Z._os’ at line 1

    有個表名somt-4Z._os,存入之後無法刪除,也無法查詢。

  • 解決方案

    原因是使用了mysql的保留字,實現刪除可以通過添加``,即:

    `somt-4Z._os`
    
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章