程大河简历:求SQL语句-返回符合条件的记录数
来源:百度文库 编辑:高校问答 时间:2024/05/08 03:37:29
最后给出SQL语言,我用的技术是ASP.NET,我会把他弄到数据层中
select count(*) as totle from table where 条件
totle 就是符合条件的记录数
记录数
如果用recordset
用其recordcount属性就POK了
select count(*)
from 表
where 条件
在代码中利用循环就可以了
用count()函数