Mysql : 如何将数据添加到变量中存储的现有数据中?
Mysql : How to add data to the existing data stored in a variable?
我希望将数据添加到我在 Mysql 中创建的现有变量。
set @variable = select * from b where b.id = 35;
@variable = select * from b where b.name = "dheeraj";
如何继续进行此类查询。
set @variable := (select name.* from a)
set @variable := concat(@variable , ',' , select name.* from b)
我希望将数据添加到我在 Mysql 中创建的现有变量。
set @variable = select * from b where b.id = 35;
@variable = select * from b where b.name = "dheeraj";
如何继续进行此类查询。
set @variable := (select name.* from a)
set @variable := concat(@variable , ',' , select name.* from b)