Set Rs = CreateObject("ADODB.Recordset")
如果我的查询语句是select * from table1 where...
用Rs.open执行查询语句,之后可以用Rs.recordcount可以确定结果集里面的行数
如果我的查询语句是select count(*) from table1 where...
用Rs.open执行查询语句后,用什么得到查询所得的计数,Rs.field(count(*))?
如果我的查询语句是select * from table1 where...
用Rs.open执行查询语句,之后可以用Rs.recordcount可以确定结果集里面的行数
如果我的查询语句是select count(*) from table1 where...
用Rs.open执行查询语句后,用什么得到查询所得的计数,Rs.field(count(*))?
rs!sl就是值
查询2班有多少个学生select count(*)from 学生 where 班级=2返回一个给定列中所有数据的总和select sum(单价*货品数量)as 总金额 from kc
----------------
select count(1) as sl from table1 where...
rs!sl就是值