我得到一個錯誤,這個查詢:SQL查詢,得到錯誤無法修復
"SELECT username
and password
FROM users
WHERE username = $email , password = $password"
它返回這個錯誤:
Error 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 ''users' WHERE username = $email , password = $password LIMIT 0, 30' at line 1
#1064 - 你的SQL語法錯誤;檢查與您的MySQL服務器版本對應的手冊,以便在第1行的''用戶'WHERE username = $ email,password = $ password LIMIT 0,30'處使用正確的語法 –
有趣...錯誤消息顯示LIMIT子句,但這裏發佈的查詢不顯示該子句。我相信這個查詢是不正確的,但我想知道在同一個腳本中是否有其他不正確的查詢? –