打印本文 打印本文 关闭窗口 关闭窗口
第三课 SqlCommand对象(翻译)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数12780  更新时间:2007/11/14 13:12:47  文章录入:mintao  责任编辑:mintao

本文档由李欣蔚(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]  ...  下一页 >> 

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