select count(*) from table 执行这个查询语句后,是把它的记录数统计出来了,但是怎样把它的值赋值给一个变量呢?
---------------------------------------------------------------
set rs=conn.execute(sql)
a=rs(0)
rs.close
set rs=nothing
a就得到了,楼主给分。。。
---------------------------------------------------------------
或者
select count(*) as a from table
取字段a即可。。。
楼主别忘了给分
---------------------------------------------------------------
select count(*) as 变量 from table