This topic created in 2606 days ago, the information mentioned may be changed or developed.
今天发现一个有趣的问题,sql 语句:
select a.xx,b.yy from a left join b on a.b_id=b.id order by a.time desc limit 10,10
a,b 都拥有 yy 字段
多条记录 time 相同时,我们将上述的 b.yy 改为 a.yy ,不同页得到的结果是不同的,没有重复;如果不改的话得到的不同页结果有重复的
这是为什么?