<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms各种数字统计SQL语句

时间:2020-12-09

共有评论:多少条 
{dede:sql sql="select count(ID) as c from dede_feedback"}·共有评论:[field:c /]条{/dede:sql}

共有会员:多少名 
{dede:sql sql="select count(ID) as c from dede_member "}·共有会员:[field:c /]名{/dede:sql}

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

今日更新:多少篇 
{dede:sql sql="SELECT count( ID ) AS c FROM dede_archives WHERE pubdate > UNIX_TIMESTAMP( CURDATE( ) ) "}今日更新:[field:c /]篇{/dede:sql}

共有图集:多少个 
{dede:sql sql="select count(ID) as c from dede_archives where channel=2"}·共有图集:[field:c /]个{/dede:sql}


共有软件:多少 个 
{dede:sql sql="select count(ID) as c from dede_archives where channel=3"}·共有软件:[field:c /]个{/dede:sql}

统计某个栏目下所有文档总数
{dede:sql sql="select count(ID) as c from dede_archives where typid=1"}·共有文章:[field:c /]篇{/dede:sql}


其中的typeid替换成需要统计的栏目id

0
首页
案例
关于
联系