MYSQL

延迟关联: 通过使用覆盖索引返回需要的主键, 在跟具这些主键关联原表获得需要的行。

eg:  SELECT <cols> FROM profiles INNER JOIN ( SELECT <primary key cols> FROM profiles WHERE x.sex = 'M' ORDER BY rating limit 10000, 10) AS x USING(<primary key cols>)

group_concat(coulnm): 将某一列的数据,用逗号隔开连城一个字符串

原文地址:https://www.cnblogs.com/da-guang/p/5977369.html