当前位置:首页 > CMS教程 > DeDecms > 列表

Dedecms中常用数据汇总sql语句(文章/软件/评论/会员)

发布:smiling 来源: PHP粉丝网  添加日期:2014-03-12 13:27:47 浏览: 评论:0 

{dede:sql sql="select count(*) as c from #@__archives where channel=1"}共有文章:[field:c /]篇{/dede:sql} 

{dede:sql sql="select count(*) as c from #@__archives where channel=2"}共有图集:[field:c /]个{/dede:sql}

{dede:sql sql="select count(*) as c from #@__archives where channel=3"}共有软件:[field:c /]个{/dede:sql}

{dede:sql sql="select count(*) as c from #@__feedback"}共有评论:[field:c /]条{/dede:sql}

{dede:sql sql="select count(mid) as c from #@__member"}共有会员:[field:c /]名{/dede:sql}

{dede:sql sql="SELECT count( * ) AS c FROM #@__archives WHERE pubdate > UNIX_TIMESTAMP( CURDATE( ) ) "}今日更新:[field:c /]篇{/dede:sql}

总共留言:{dede:sql sql="select count(*) as cc From #@__guestbook"}[field:cc/]{/dede:sql}条

{dede:sql sql="select sum(click) as c from #@__archives"}文章阅读:[field:c /]人次{/dede:sql}

Tags: Dedecms 文章 评论 会员

分享到: