MySQL Forums
Forum List  »  Stored Procedures

Re: Declare statement causing error 1064
Posted by: Peter Brawley
Date: November 25, 2018 10:35AM

You forgot a DELIMITER directive, which creaton of multiline stored routines needs so line-by-line execution is suspended, see the manual page for sprocs.

drop procedure ...
DELIMITER go
create procedure ...
begin
...
end;
go
DELIMITER ;

Options: ReplyQuote


Subject
Views
Written By
Posted
3040
November 25, 2018 06:12AM
Re: Declare statement causing error 1064
1026
November 25, 2018 10:35AM


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.