mysql自定义函数执行select语句
delimiter //
create function newgetadmin()
returns int
begin
declare acc int;
select account into acc from admin where name='管理员1' and telephone='110';
return acc;
end//
delimiter ;
mysql自定义函数执行select语句
delimiter //
create function newgetadmin()
returns int
begin
declare acc int;
select account into acc from admin where name='管理员1' and telephone='110';
return acc;
end//
delimiter ;