create procedure pro_wjntest()
begin
DECLARE tmpName varchar(20) default '';
end;在用heidiSQL里运行,会出现/* SQL Error: 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 'varchar(20) default ''' at line 3 */错误,mysql里面的声明变量不是这样么?搞了一个下午,头大了,请大虾们赐教下!!!!