我困惑。下面的MySQL查詢:兩個簡單的MySQL語句導致語法錯誤
SET @a := 0;
SELECT *
FROM users;
給出了錯誤:
Invalid query: 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 'SELECT * FROM users' at line 2`
當我切換語句的順序,我得到了同樣的錯誤,再次上線2(即使我交換他們)
然而,無論是線路本身運行正常。什麼可能造成這種情況?
你怎麼嘗試執行此查詢?從MySQL控制檯?許多mysql客戶端不接受多重查詢。 – zerkms 2010-11-08 04:56:31