When I try to DECLARE output_text VARCHAR(20); i get the following 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 ‘DECLARE output_text VARCHAR(20)’ at line 1
I running phpmyadmin MySQL version: 5.0.45-community-nt. Do I need special privileges to declare variables and functions?
It looks like your
DECLAREstatement is standing on its own, which is illegal: