phpmyadmin + mysqlバージョン5.0.77を使用して、次のストアドプロシージャを作成しました。phpmyadminを使用してmysqlプロシージャが作成されない/動作しない
ストアドプロシージャは:
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
mysqlバージョン5.0.77 – Jos