江门
prod
This commit is contained in:
@@ -1617,3 +1617,22 @@ UNLOCK TABLES;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2026-02-01 15:43:55
|
||||
|
||||
create
|
||||
definer = root@`%` procedure proc_jmdemo(IN pageNo int, IN pageSize int)
|
||||
BEGIN
|
||||
DECLARE begin_no INT;
|
||||
SET begin_no = (pageNo-1)*pageSize;
|
||||
|
||||
-- 分页查询列表
|
||||
SELECT * FROM rep_demo_dxtj
|
||||
WHERE id >= (
|
||||
SELECT id FROM rep_demo_dxtj
|
||||
ORDER BY id ASC
|
||||
LIMIT begin_no,1
|
||||
)
|
||||
ORDER BY id ASC
|
||||
LIMIT pageSize;
|
||||
|
||||
END;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user