打印本文 打印本文 关闭窗口 关闭窗口
第四课 使用SqlDataReader读取数据(翻译)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数15050  更新时间:2007/11/14 13:12:43  文章录入:mintao  责任编辑:mintao
try

                       {

                               // open the connection

                               conn.Open();

 

                               // 1.  get an instance of the SqlDataReader

                               rdr = cmd.ExecuteReader();

 

                               // print a set of column headers

                               Console.WriteLine(

"Contact Name             City                Company Name");

                               Console.WriteLine(

"------------             ------------        ------------");

 

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ...  下一页 >> 

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