SyntaxFix
Write A Post
Hire A Developer
Questions
Per the MySQL docs DECLARE works only at the start of a BEGIN...END block as in a stored program.