datatable是用inner join 与select orderid as stroid这两种方式得到的,这时如何用CommandBuild提交更新?
SqlDataAdapter custDA = new SqlDataAdapter("select * from order R inner join detail D on R.id=D.id", nwindConn);
SqlCommandBuilder custCB = new SqlCommandBuilder(custDA);
DataSet custDS = new DataSet();
nwindConn.Open();
custDA.Fill(custDS, "Customers");
// Code to modify data in the DataSet here.
custDA.Update(custDS, "order");
这种写法在提交Update()时,好象不行?