SQL语句将某字段查询出以逗号隔开时间:2023-03-10 03:01:51 MySQL的sql语句有好多能够省去server端的复杂处理 1、group_concat 这玩意儿能够实现 将一个字段如id查询出来 成为这种格式:121,122,123,124,125,126 select group_concat(id) as nids from 表名 搞定