日期:2014-05-17  浏览次数:20712 次

用ASP汇总数据库中符合条件的记录数
现有一个数据库属性字段。字段中只有1、2两个数字
现在需要汇总数据库中符合值为1的记录数。
请各位给出较为详细的代码!谢谢了

------解决方案--------------------
select count(*) from table where ziduan=1
------解决方案--------------------
select count(*) as blname from table where ziduan=1

response.write trim(rs( "blname "))