扫码关注官方订阅号
用sql语句查询出来红色的结果、
闭关修行中......
select value, group_concat(id) from test group by value;
group by分组查询
group by
SELECT value, group_concat(id) FROM tablename GROUP BY value;
参考:分组查询与连接
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
select value, group_concat(id) from test group by value;
group by分组查询参考:分组查询与连接