帝国CMS自定义列表查询SQL语句,从第N条开始查询的方法

  帝国CMS自定义列表查询SQL语句,怎么从第N条开始查询

  帝国CMS自定义列表查询SQL语句,从第N条开始查询的方法,下面帝国CMS模板网就来为大家分析:

  统计记录:

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条是开始!

© 版权声明
THE END
喜欢就支持以下吧
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容