mysql limit 使用不當致使的bug

//查詢狀態爲0的數據,並翻頁返回數據,每次翻頁10條。sql 1)select * from table_a where status=0 limit 0,10;spa 2)select * from table_a where status=0 and id >#{lastId} order by id limit 10;it 假設知足status=0的數據一共12條。分別是id=1,2,..
相關文章
相關標籤/搜索