我希望向mysql中创建的现有变量添加数据。
set @variable = select * from b where b.id = 35; ``` `@variable = select * from b where b.name = "dheeraj";` 我怎样才能继续进行这种类型的查询。
vh0rcniy1#
set @variable := (select name.* from a) set @variable := concat(@variable , ',' , select name.* from b)
1条答案
按热度按时间vh0rcniy1#