Paging in SQL with LIMIT/OFFSET sometimes results in duplicates on different pages

后端 未结 3 977
面向向阳花
面向向阳花 2021-02-13 10:31

I\'m developing an online gallery with voting and have a separate table for pictures and votes (for every vote I\'m storing the ID of the picture and the ID of the voter). The t

3条回答
  •  一生所求
    2021-02-13 11:17

    in my case this problem was due to the Null value in the Order By clause, i solved this by adding another Unique ID field in Order By Clause along with other field.

提交回复
热议问题