MySQL Forums
Forum List  »  Newbie

Re: stored procedure not working
Posted by: Andrew Gilfrin
Date: July 29, 2005 05:50AM

Works for me...

mysql> create procedure helloprocedure(OUT param1 VARCHAR(100))
-> begin
-> set param1 = 'Hello World';
-> end
-> //
Query OK, 0 rows affected (0.03 sec)

mysql> call helloprocedure(@a)//

Query OK, 0 rows affected (0.03 sec)

mysql> select @a//

+-------------+
| @a |
+-------------+
| Hello World |
+-------------+
1 row in set (0.00 sec)

Andrew Gilfrin
------------------
http://gilfster.blogspot.com
My MySQL related Blog

http://www.mysqldevelopment.com
MySQL Stored Procedure,Trigger, View.... (Just about most things these days) Information

Options: ReplyQuote


Subject
Written By
Posted
Re: stored procedure not working
July 29, 2005 05:50AM


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.