摘要:
Console.WriteLine("It's Null");elseConsole.WriteLine("It's not Null");//赋予空值rowCustomer["Phone"] = DBNull.Value;④、删除DataRowDataRow rowCustomer;rowCustomer = ds.Tables["Customers"].Rows.Find("ALFKI");rowCustomer.Delete();⑤、清除DataRowDataRow row 阅读全文
posted @ 2013-01-17 09:27
最轻
阅读(274)
评论(0)
推荐(0)
摘要:
1、创建DataSet对象:DataSet ds = new DataSet("DataSetName");2、查看调用SqlDataAdapter.Fill创建的结构 da.Fill(ds,"Orders"); DataTable tbl = ds.Table[0]; foreach(DataColumn col in tbl.Columns) Console.WriteLine(col.ColumnName);3、查看SqlDataAdapter返回的数据①、DataRow对象 DataTable tbl = ds.Table[0]; DataRow 阅读全文
posted @ 2013-01-17 09:20
最轻
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号