我已經創建了以下存儲過程使用phpmyadmin + mysql版本5.0.77,但沒有按預期工作.....並顯示下面的錯誤。mysql程序沒有創建/使用phpmyadmin
存儲過程:
delimiter //
create procedure myProc()
begin
select name from main_contacts;
end //
delimiter;
Error There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem ERROR: Unknown Punctuation String @ 11 STR: // SQL: delimiter // create procedure myProc() begin select name from main_contacts SQL-query : delimiter // create procedure myProc() begin select name from main_contacts MySQL said: #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 // create procedure myProc() begin select name from main_contacts' at line 1
你用什麼mysql版本? `SELECT VERSION()` – zerkms 2011-01-11 05:41:03
mysql版本5.0.77 – Jos 2011-01-11 05:44:54