使用 row

    xiaoxiao2021-12-14  19

    select * from

    (select ROW_NUMBER() over (order by 排序字段) desc) row , * from 表名  where 1=1 and 筛选条件)  别名

    where row between  每页显示的条数* (当前页码 - 1) + 1  and 每页显示的条数*当前页码

    转载请注明原文地址: https://ju.6miu.com/read-964646.html

    最新回复(0)