扫码关注官方订阅号
如题,例如sql:update table set col = col + 1 where id = 22 and @value := col;php该如何得到value的值呢?
update table set col = col + 1 where id = 22 and @value := col;
人生最曼妙的风景,竟是内心的淡定与从容!
是否应该是 and col=@value ?确定一条记录后,更新对应的值
你可以执行一条sql的返回结果就能获取到变量的值
select @value;
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
是否应该是 and col=@value ?确定一条记录后,更新对应的值
你可以执行一条sql的返回结果就能获取到变量的值