当前位置: 代码迷 >> ASP >> 用ASP汇总数据库中符合条件的记录数,该怎么处理
  详细解决方案

用ASP汇总数据库中符合条件的记录数,该怎么处理

热度:214   发布时间:2012-02-27 10:00:22.0
用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 "))
  相关解决方案