标签: php mysql
答案 0 :(得分:1)
SELECT xx.a, xx.b, xx.c, aa.d, aa.e, aa.f, function_name('$id(dynamic id)') FROM xyz_table AS xx JOIN abc_table AS aa ON aa.d = xx.a WHERE xx.id = '$id(dynamic id)'
请注意,函数值将与每条记录一起返回(除非将其定义为DETERMINISTIC,否则将多次调用它。)
DETERMINISTIC