gpt4 book ai didi

mysql : How to add data to the existing data stored in a variable?

转载 作者:行者123 更新时间:2023-11-29 16:50:27 25 4
gpt4 key购买 nike

我希望将数据添加到我在 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 : How to add data to the existing data stored in a variable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52836176/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com