TSFLLC
asked on
mySQL vs. MS SQL - CREATE PROCEDURE differences?
I work primarily with MS SQL. When I want to create a procedure I take an existing procedure and change it. I make the changes to the procedure as I want and then change ALTER to CREATE and execute it.
Apparently it doesn't work the same way. The '@' generates an error if CREATE syntax is used as opposed to ALTER.
I can't find a sample CREATE PROCEDURE with variables being passed.
Apparently it doesn't work the same way. The '@' generates an error if CREATE syntax is used as opposed to ALTER.
I can't find a sample CREATE PROCEDURE with variables being passed.
ASKER
Forgot the ')'...close paren at the end of @ZipCode varchar(10)
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I see that @ is not included in MySQL. Strangely, when I was attempting to execute this code in MySQL Workbench I would have sworn I removed the @ to no avail.
Also I was reviewing the dev.mysql.com.... link you posted and missed the SINGLE out param1 at the end of the CREATE line.
Will test. Thanks much.
Also I was reviewing the dev.mysql.com.... link you posted and missed the SINGLE out param1 at the end of the CREATE line.
Will test. Thanks much.
ASKER
Excellent. Worked great.
ASKER
Open in new window