下面两个sql经测试 肯定有用
{dede:sql sql="SELECT count(id) as total FROM dede_archives ;"}[field:total /]{/dede:sql}
{dede:sql sql="SELECT count(id) as total FROM #@__feedback where aid=~id~;"}
[field:total runphp='yes']@me=empty(@me)? 0 : @me;[/field:total]
{/dede:sql}