I have created the following stored procedure using phpmyadmin + mysql version 5.0.77 but not working as expected.....and showing the below error.
Stored Procedure:
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
SELECT VERSION()