asp统计某个参数在数据库中有几条
<%
set rsM=createobject("adodb.recordset")
rsM.open "select count(*) as total from scunews where reference='"&name1&"' ",cn,1,1
if not rsM.eof then
numM=rsM("total")
'numM=rsM.recordcount
end if
rsM.close
set rsM=nothing
%>
asp统计某个参数在数据库中有几条