◎ 簡介:帝國CMS自定義列表查詢SQL語句,從第N條開始查詢的方法
統計記錄:
select count(*) as total from [!db.pre!]ecms_news where id>(select id from [!db.pre!]ecms_news order by id desc limit 10,1) and checked=1
查詢記錄:
select * from phome_ecms_news where checked=1 order by newstime desc
從第10條是開始!