2014-05-17 61 views
0
DELIMITER $$ 

    CREATE PROCEDURE SP_GET_AUDIO_DETAIL(IN P_ID INT) 
    BEGIN 
     SELECT post_content FROM wp_posts WHERE ID= P_ID; 
    END $$  
    DELIMITER; 

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 ' $$ DELIMITER ' at line 5".誰能幫助我:「#1064 - 你的SQL語法錯誤;」

+0

獲取末擺脫這個詞界定符 – Farkie

回答

1

MySQL的期待像END SOMETHING,因爲它是一種愚蠢的時候。

嘗試:

... 
END; 
$$ 
DELIMITER ;