asp查询access问题
能不能用数字字段编号来计算数字相同的一共有几条记录???
比如说我的数据库里的字段"id_no"是数字字段,我要查询"id_no"中有几条记录等于2的记录?
参考答案:select count(id_no) from 表名 where id_no=2
绝对可以!
显示多少条的时候就用
response.write(rs(0))
select * from table where id_no=2
也可以
response.write(rs.recordcount)
能不能用数字字段编号来计算数字相同的一共有几条记录???
比如说我的数据库里的字段"id_no"是数字字段,我要查询"id_no"中有几条记录等于2的记录?
参考答案:select count(id_no) from 表名 where id_no=2
绝对可以!
显示多少条的时候就用
response.write(rs(0))
select * from table where id_no=2
也可以
response.write(rs.recordcount)