In MySQL 我的职能是,根据这一数字,从另一个表格中得出一定结果。 执行目前的情况如下:
SELECT id, date, function(do stuff with value 1) as t1, function(do stuff with value 2) as t2, function(do stuff with value 3) as t3, ... function(do stuff with value N) as tN FROM table
您可以选择发言(或甚至制定表格的程序),这样:
SELECT id, date, LOOP x = 1 through N function(do stuff with value x) as tx, END LOOP FROM table
感谢。