【发布时间】:2013-08-12 13:26:20
【问题描述】:
有没有办法可以将整个子查询作为参数传递给我的 MySQL 函数并在某个条件下执行它?像这样的东西(但故障较少)..
delimiter //
create procedure myFunction (mySubquery)
begin
if (true) then
execute mySubquery;
end if;
/*rest of the action*/
end //
delimiter ;
【问题讨论】: