-1
這是我的SQL語句:的MySQL更新查詢被給了一個錯誤:
String sql = "update student "
+ " set first_name=?, last_name=?, email=?"
+ " where id=? ";
我使用mysqlWorkbench,這是我收到的錯誤:
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=?, email=? where id=?' at line 1
你可以發佈你正在嘗試執行的*整個*組語句嗎? –
您從哪種語言調用此查詢? –
Java,我正在使用DAO訪問數據庫 –