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): 将某一列的数据,用逗号隔开连城一个字符串

posted on 2016-10-19 15:05  IsRunning  阅读(103)  评论(0编辑  收藏  举报