asp中字段A符合条件b的在数据库中的总数
来源:百度知道 编辑:UC知道 时间:2024/06/03 03:46:04
asp中字段A符合条件b的在数据库中的总数
onl_tmp=Conn.execute("Select count(A)from [你的表名] where A='"&b&"'")(0)
If isnull(onl_tmp) Then onl_tmp=0 End If
Response.Write onl_tmp
如果A字段为数字格式则条件部分更改为
where A="&b&"
select count (*) from table where a=b
不理解你问的是什么