{eyou:assign name="keywords" value="$eyou.field.keywords"}
<!--通過自定義變量assign獲取關(guān)健詞-->
{eyou:sql sql="Select count(*) as AllNum from ey_archives where title like '%$keywords%'" cachetime='-1'}
{$field.AllNum}
<!--返回查詢數(shù)量為allNum字段-->
{/eyou:sql}