delimiter // create function sf_add(a int,b int) returns int begin return a+b; end // mysql>-- 显示创建函数的状态 show function status //
mysql>select sf_add(1,2)