打印本文 打印本文 关闭窗口 关闭窗口
第三课 SqlCommand对象(翻译)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数14792  更新时间:2007/11/14 13:12:47  文章录入:mintao  责任编辑:mintao
对象允许你擦许并对数据库传送命令。它含有针对不同的命令而特定的方法。ExecuteReader方法返回SqlDataReader对象来现实查询的结果。对于insertupdate以及delete这些SQL命令,使用ExecuteNonQuery方法。如果你只需要查询的单独聚集值,ExecuteScalar方法是最好的选择。

I hope you enjoyed this lesson and welcome you to the next one in this series, Lesson 04:  Reading Data with the SqlDataReader.

 

 

 << 上一页  [11] [12] [13] [14] [15] 

打印本文 打印本文 关闭窗口 关闭窗口