MySQL Forums
Forum List  »  Stored Procedures

Re: Problem with creating a stored procedure
Posted by: Barry Galbraith
Date: April 19, 2012 08:47PM

The refman shows me you need to set DELMITER to something other than ; before defining the PROCEDURE.
Then you need the procedure name,
any parameters,
BEGIN,
SQL statement(s)
END
close using the new delimiter.
Then restore ; as DELIMITER

It looks like you haven't set DELIMITER, and have no END to match your BEGIN.

Fix those up, and try again.

Good luck,
Barry.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.