ExecuteScalar 函数功能
来源:互联网 发布:海康威视网络容错多址 编辑:程序博客网 时间:2024/05/16 09:31
OleDbCommand.ExecuteScalar Method
MSDN 资料
Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
Namespace: System.Data.OleDb
Assembly: System.Data (in system.data.dll)
用处: 查询数据库总记录数
string querystr = "select count(*) From ConanMsg";
OleDbCommand mycommand;
mycommand = new OleDbCommand(querystr, myconn);
int count = (int)mycommand.ExecuteScalar();
OleDbCommand mycommand;
mycommand = new OleDbCommand(querystr, myconn);
int count = (int)mycommand.ExecuteScalar();
count里保存的就是总记录数.
- ExecuteScalar 函数功能
- ExecuteScalar
- ExecuteScalar
- ExecuteScalar
- ExecuteScalar
- ExecuteScalar
- SqlCommand.ExecuteScalar 和Sqlserver的SCOPE_IDENTITY()函数
- ExecuteScalar 方法
- ExecuteScalar方法
- SQLSERVER ExecuteScalar
- ExecuteScalar方法
- executeScalar ExecuteNonQuery
- ExecuteScalar()方法
- 函数功能
- ADO.NET ExecuteScalar()用法
- ExecuteNonQuery(),ExecuteReader()与ExecuteScalar()
- SqlCommand.ExecuteScalar 方法
- ExecuteNonQuery(),ExecuteReader()与ExecuteScalar()
- 33招Google技巧
- 中国企业信息化的“四步论”
- Hibernate的缓存机制介绍 摘自 孙卫琴
- 杀毒软件性能测试代码
- p2p研究方向
- ExecuteScalar 函数功能
- 开源项目网址
- MFC应用程序中指针的使用
- 试贴
- 动态语言,别再说不
- 改变字符串顺序(倒序)
- 十分好的计算机图书下载网站
- Yacc 与 Lex 快速入门
- http://xinirene.googlepages.com/home