MySQL的sql语句有好多能够省去server端的复杂处理
1、group_concat
这玩意儿能够实现 将一个字段如id查询出来 成为这种格式:121,122,123,124,125,126
select group_concat(id) as nids from 表名 搞定
MySQL的sql语句有好多能够省去server端的复杂处理
1、group_concat
这玩意儿能够实现 将一个字段如id查询出来 成为这种格式:121,122,123,124,125,126
select group_concat(id) as nids from 表名 搞定
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M