+-
MySQL:对存储过程参数使用select语句
我有一个有效的存储过程:

call my_procedure('A,B,C,D');

我想用另一个表的子查询中的列表填充A,B,C,例如:

call my_procedure(
  SELECT group_concat(letters) FROM table WHERE type = 'some_type')
);

可能?或者我做错了吗?

最佳答案
SELECT my_function(group_concat(letters)) FROM table WHERE type = 'some_type';
点击查看更多相关文章

转载注明原文:MySQL:对存储过程参数使用select语句 - 乐贴网