怎么得到数据记录数. 不用COUNT(*) 直接在系统表里可以得到,不过有可能没有count(*)准确 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Select identity(int,1,1) as id,* Into #tmp1 from 表 where 条件select 记录数=Max(ID) from #tmp1Drop table #tmp1 我认为COUNT(*)是得到数据记录数最好、最方便的途径 try:set nocount offselect * from t_infoselect @@rowcount 那用这个select sum(1) as 记录数 from 你的表 set rs=server.createobject("adodb.recordset")sql="select * from table"rs.open sql ,conn,1,3totalPut=rs.recordcount 输出totalPut就可以了! select sum(1) from yourtable select sum(1) as 记录数 from 你的表 select rows from sysindexes where id = object_id('YonrTableName') and indid <2 select sum(1) as sumfrom usertable select sum(1) as 记录数 from 你的表ORselect 1 from 你的表select @@rowcount 汇总问题 求sql语句 delete语句问题 长度为10的nvarchar数据能放几个汉字? ???问个sql server 关于sysuser表的问题 急,简单查询语句! 对于使用中文字段,对查询速度有影响吗? 在线跪求!!!! ----这样的SQL怎么写?--- 郁闷,又是语法的问题 这个存储过程为什么出现错误提示很急!!! 如何将检索的结果存为一张临时表
select 记录数=Max(ID) from #tmp1
Drop table #tmp1
set nocount off
select * from t_info
select @@rowcount
sql="select * from table"
rs.open sql ,conn,1,3
totalPut=rs.recordcount
输出totalPut就可以了!
where id = object_id('YonrTableName') and indid <2
from usertable
ORselect 1 from 你的表
select @@rowcount