0

我希望将数据添加到我在 Mysql 中创建的现有变量中。

set @variable = select * from b where b.id = 35;

@variable = select * from b where b.name = "dheeraj";

我怎样才能继续进行这种类型的查询。

4

1 回答 1

0
set @variable := (select name.* from a)  

set @variable := concat(@variable , ',' , select name.* from b)
于 2018-10-20T23:26:09.973 回答