大家好,又见面了,我是你们的朋友全栈君。
@pageSize=2;
@pageIndex=3;
5=(@pageIndex - 1 ) * @pageSize +1;
6= @pageIndex * @pageSize;
SELECT * FROM
(
SELECT ROW_NUMBER() OVER (ORDER BY cdate ASC) AS 'RowNumber', * FROM tb_push_order_log where 1=1
) AS tb_push_order_log
WHERE RowNumber BETWEEN 5 AND 6;
select * from (
SELECT
ROW_NUMBER () OVER (ORDER BY a.oper_date DESC) AS RowNumber,
a.item_no ItemNo,
b.item_subno ItemSubno,
item_name ItemName,
stock_qty StockQty
FROM
t_im_branch_stock a
INNER JOIN t_bd_item_info b ON a.item_no = b.item_no
where a.branch_no = '000001'
)a where RowNumber between 1 and 100
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/138510.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...