MySQL的sql语句有好多能够省去server端的复杂处理

1、group_concat

这玩意儿能够实现  将一个字段如id查询出来   成为这种格式:121,122,123,124,125,126

select group_concat(id) as nids from 表名             搞定