研究一条distinct+order by+limit的SQL执行过程,发现limit影响排序结果的彩蛋

假设有以下表:mysql mysql> select * from tab; +----+------+ | id | col1 | +----+------+ | 1 | 2 | | 2 | 2 | | 3 | 5 | | 4 | 3 | | 5 | 3 | | 6 | 4 | +----+------+ 6 rows in set (0.01 s
相关文章
相关标签/搜索