MySQL Forums
Forum List  »  PHP

Re: mysql 5.0.10 stored procedure
Posted by: Jay Pipes
Date: August 07, 2005 11:56PM

you need to explicitly set the delimiter to something other than ; before executing. Otherwise, MySQL thinks you're ending the procedure at the ;.

from mysql client:

mysql> DELIMITER //
mysql> CREATE PROCEDURE simpleproc (OUT param1 INT)
> BEGIN
> SELECT COUNT(*) INTO param1 FROM admin_profile;
> END //
mysql> DELIMITER ;

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql 5.0.10 stored procedure
August 07, 2005 11:56PM


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.