社区
C#
帖子详情
请问如何获取SqlDataReader得RecordCount值?
marty2000
2004-12-08 10:48:40
请问如何获取SqlDataReader得RecordCount值?
...全文
318
14
打赏
收藏
请问如何获取SqlDataReader得RecordCount值?
请问如何获取SqlDataReader得RecordCount值?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
14 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
生活真美好
2004-12-08
打赏
举报
回复
datatable
cpio
2004-12-08
打赏
举报
回复
select count
李天天~
2004-12-08
打赏
举报
回复
up
xia0cai
2004-12-08
打赏
举报
回复
select count(*) as count,* from...
在sql语句中处理好出来
marty2000
2004-12-08
打赏
举报
回复
up
marty2000
2004-12-08
打赏
举报
回复
up
marty2000
2004-12-08
打赏
举报
回复
有什么可以代替DataReader?
thinkingforever
2004-12-08
打赏
举报
回复
只有循环完SqlDataReade中的数据
brightheroes
2004-12-08
打赏
举报
回复
读到不能读为止
嗯
所以不喜欢DataReader,哇哈哈
marty2000
2004-12-08
打赏
举报
回复
那用什么方法可以很容易地获取RecordCount值?
thinkingforever
2004-12-08
打赏
举报
回复
没有办法取的
cuike519
2004-12-08
打赏
举报
回复
SqlDataReader provides a means of reading a forward-only stream of rows from a SQL Server database.
So you must read and read and calculate count.For example :while() or for().
yoncen
2004-12-08
打赏
举报
回复
@@ROWCOUNT
rachy
2004-12-08
打赏
举报
回复
不要用SqlReader,用SqlDataAdapter就好了
SQLite ADO.NET 2.03.5 +示例源码
/// 返回
SqlDataReader
对象 /// /// <param name="cmdText"></param> /// 传入的参数 /// <returns></returns> public static SQLiteDataReader ExecuteReader(string cmdText, params object[] p) { ...
SqlDataReader
无法
获取
Procedure的Output参数
值
?
SqlDataReader
无法
获取
Procedure的Output参数
值
? 大 | 中 | 小 Post by 幻想曲 at 08 Apr 2007 11:22 <!--google_ad_client = "pub-3122628043669411";google_ad_output = "textlink";google_ad_format = "re
mysql
sqldatareader
_
SqlDataReader
的用法
19.}
SqlDataReader
对象GetOrdinal()方法可以查看序列号的
值
01.SqlCommand cmd = new SqlCommand(); 02.//存储过程应用 03.cmd.Connection = conn; 04.cmd.CommandType = CommandType.StoredProcedure; 05.cmd....
SqlDataReader
的用法
20. //调用
SqlDataReader
的 Get 方法在碰到 NULL
值
时将会产生一个 SqlNullValueException.可以使用IsDBNull方法判断 21. articleClass arc = new articleClass(); 22. arc.clsname = rdr[0]; 23. if (rdr....
nubby mysql_
SqlDataReader
的问题
就直接指定数据源,然后DataBind()就可以了,以为
SqlDataReader
是连接数据库以后,读取了数据的,所以就拿来直接比较,后来经过查找资料及向别人请教,得知了
SqlDataReader
只是提供了一个数据的只读的指向,所以...
C#
110,552
社区成员
642,562
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章