MySQL Forums
Forum List  »  Stored Procedures

Create Stored Proc error
Posted by: Jerry OBrien
Date: January 15, 2006 01:58PM

I'm new to MYSQL, when I attempt to create a stored proc I receive the following error message.

mysql> create procedure test1 ()
-> begin
-> select count(*) from stocks;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'sele
t count(*) from stocks' at line 3
mysql>

I'm using MYSQL Command Line Client.

Using Version 5.0

What am I doing wrong?

Options: ReplyQuote


Subject
Views
Written By
Posted
Create Stored Proc error
1853
January 15, 2006 01:58PM
1257
January 15, 2006 06:02PM


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.