美文网首页
mysql order by count(*) 同值 翻页问题

mysql order by count(*) 同值 翻页问题

作者: 许一沐 | 来源:发表于2023-05-23 13:59 被阅读0次

可能 count(id) 有相同的计数值?每次order by顺序不一致?

不要轻易用count来排序

order by 一的值一样,会随机。

可以order by多个字段,排序稳定点

image.png

相关文章

网友评论

      本文标题:mysql order by count(*) 同值 翻页问题

      本文链接:https://www.haomeiwen.com/subject/wryxedtx.html