數(shù)據(jù)集ds中兩數(shù)據(jù)表(父表:Customer;子表:CartItems)之間有如圖外鍵約束。
父表Customers中有一行數(shù)據(jù)的CustomerID=100,子表CartItems中有20行數(shù)據(jù)的CustomerID=100。若從父表中刪除該行,則:()
A.子表不發(fā)生任何變化
B.子表中20個相關行的CustomerID列的值變?yōu)镈BNull
C.子表中20個相關行被刪除
D.引發(fā)Exception
您可能感興趣的試卷
你可能感興趣的試題
已知變量ds引用某個DataSet對象,該DataSet對象中已包含一個表名為"table1"的數(shù)據(jù)表。在Windows窗體Form1中,為了將變量名為dataGrid1的DataGrid控件綁定到數(shù)據(jù)表"table1",可以使用代碼()。
A.A
B.B
C.C
D.D
A.為表"Product"添加一個由列"Name","Class"組合成的主鍵約束
B.為表"Product"添加一個由列"Name","Class"組合成的唯一性約束
C.為數(shù)據(jù)集ds添加一個名為"Product"的數(shù)據(jù)表,并添加兩個列,列名分別為"Name"和"Class"
D.為數(shù)據(jù)集ds添加一個名為"Product"的數(shù)據(jù)表,并添加一個名為"UC_ProductName"的數(shù)據(jù)列
A.dt.PrimaryKey="CustomerID";
B.dt.PrimaryKey.Add("CustomerID");
C.dt.PrimaryKey=new object[]{"CustomerID"};
D.dt.PrimaryKey=new DataColumn[]{dt.Columns["CustomerID"]};
A.0
B.100
C.200
D.300
A.DataTable dt_customers=new DataTable();
B.DataTable dt_customers=new DataTable("Customers");
C.ds.Tables.Add("Customers");
D.ds.Tables.Add(newDataTable("Customers");
最新試題
DataReader提供了一個()方法允許移動到下一個返回行的查詢結果集。
為了向數(shù)據(jù)源更新數(shù)據(jù),應該調(diào)用().
連接sql server 2000數(shù)據(jù)庫,使用哪種.net數(shù)據(jù)提供程序最好()
如何配置DataAdapter,以允許根據(jù)DataSet的內(nèi)容更新數(shù)據(jù)源?
為了從數(shù)據(jù)源向數(shù)據(jù)集填充數(shù)據(jù),應該調(diào)用().
什么是.NET數(shù)據(jù)提供程序?
NET Framework中包含兩種數(shù)據(jù)提供程序,分別是()和()。
使用DataAdapter填充DataSet的最有效方式是什么?
使用oledb.net數(shù)據(jù)提供程序時,連接字符串的()關鍵字指出要連接的oledb數(shù)據(jù)源的類型。
Sqlserver的兩種登陸模式()和()