如SQL为:select name from test_user where state = 1 order by create_time limit 10,10查处的数据会有重复。
原因:由于order by 字段重复的数据导致的,建议将order by 后面的字段加一个唯一的字段,或者使用2个字段组成唯一的。
行至水穷处,坐看云起时
如SQL为:select name from test_user where state = 1 order by create_time limit 10,10查处的数据会有重复。
原因:由于order by 字段重复的数据导致的,建议将order by 后面的字段加一个唯一的字段,或者使用2个字段组成唯一的。