狗屁mysql,真恶心,弄个函数怎么写都报错,网上的例子都执行不了。
create function fngetage()
returns int
begin
return 2;
end;这个够简单了吧,还报错:Error Code : 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 'return 2' at line 4
(0 ms taken)Error Code : 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 'end' at line 1
(0 ms taken)有没有哪为大哥能给点帮助啊,我实在无语了,也没办法了。