本文档由李欣蔚(nirvana_li)翻译自http://www.csharp-station.com/,转载请注名出处! 更新日期2006-2-14
Lesson 03: The SqlCommand Object
SqlCommand对象
This lesson describes the SqlCommand object and how you use it to interact with a data base. Here are the objectives of this lesson:
这节课描述了SqlCommand对象以及如何使用它与数据库交互。下面是本课的目标:
- Know what a command object is.
- Learn how to use the ExecuteReader method to query data.
- Learn how to use the ExecuteNonQuery method to insert and delete data.
- Learn how to use the ExecuteScalar method to return a single value.
- 知道什么是command对象
- 学习如何使用ExecuteReader方法查询数据
- 学习如何使用ExecuteNonQuery方法插入和删除对象
- 学习如何使用EXecuteScalar方法返回单一值
Introduction
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |