Can't create mysql stored procedure?

You need to have BEGIN tag after CREATE PROCEDURE clone_perms and not AS.

Now I get this error. /* SQL Error (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 'BEGIN declare @new_id varchar(30), @old_id varchar(30) declare get_perms cur' at line 2 */ – Jonathan Feb 4 at 14:40 Sorry didn't test it, but that was the most glaring omission I spotted. I'll have a proper look.

– anothershrubery Feb 4 at 14:46.

Don't use an @ to start local (declared) variable names, that's only for user variables you create with the SET @varname=value; statement. You'll also need to terminate your statements with a semicolon. That's the cause of the latest error, there's no ; after your first declare statement.

You'll also need to terminate your statements with a semicolon. That's the cause of the latest error, there's no ; after your first declare statement. Terms of service.

Not the answer you're looking for? Or ask your own question.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions