0
我試圖運行下面的查詢(在續集專業),但我得到了以下語法錯誤:語法錯誤EXISTS查詢
'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 'IF
(EXISTS(SELECT username FROM USER WHERE username = "TestObserver"))
{SELECT *' at line 1'
代碼:
IF EXISTS (SELECT username FROM USER WHERE username = "TestObserver")
SELECT * FROM USER WHERE username = "TestObserver"
感謝您的回覆 – BrianM