MySQL Forums
Forum List  »  Stored Procedures

Create stor procedure
Posted by: Sarah Mac
Date: January 10, 2015 08:27PM

create procedure site_sp()
BEGIN
SELECT COUNT(*) FROM SHOWSITE
END

when I try to create a store procedure with the above statement, i experience the below error.
"Error Code: 1064. 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 '' at line 3"

can you assist. thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Create stor procedure
2229
January 10, 2015 08:27PM
984
January 10, 2015 11:43PM


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.