MySQL Forums
Forum List  »  Stored Procedures

Re: Cannot declare any variable!
Posted by: Peter Brawley
Date: September 05, 2014 03:19PM

You forgot DELIMITER?

drop procedure if exists spl;
delimiter go
CREATE PROCEDURE sp1( x VARCHAR(5) ) 
BEGIN 
  DECLARE re INT; 
END;
go
delimiter ;

Options: ReplyQuote


Subject
Views
Written By
Posted
4509
September 05, 2014 02:46PM
Re: Cannot declare any variable!
1649
September 05, 2014 03:19PM
1320
September 05, 2014 04:03PM
1260
September 08, 2014 09:49AM
1354
September 09, 2014 10:11AM


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.