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

admin 2024年1月19日14:01:17帝国cms技巧评论1,565 次浏览阅读模式

内容摘要

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

文章正文

◎ 简介:帝国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条是开始!

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日14:01:17
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17538.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: