MySQL Forums
Forum List  »  Stored Procedures

Re: Problem with creating a stored procedure
Posted by: Rick James
Date: April 22, 2012 11:16PM

> Then how would I ever learn?

1. Simplify the test cases -- you don't need 11 arguments for learning; 1 or 2 should suffice.

2. Test the statements manually -- your original INSERT statement would have failed because of using the wrong type of quotes.

3. Look at examples. Most (not all) are explicit about having DELIMITER before and after.

4. Look more carefully. (I admit these are subtle.)
* "Delimiter $$ CREATE..." -- The "delimiter $$" "statement" takes up a whole line; you cannot have CREATE... (or anything else) on the line with it.
* "Delimiter;" needs a space between "delimiter" and ";".

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Problem with creating a stored procedure
981
April 22, 2012 11:16PM


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.