我想从我的数据集中更新我的数据库。
mydataadapter = new MySqlDataAdapter("SELECT * FROM table0; SELECT * FROM table1; SELECT * FROM table2;", con);
myda.Fill(dataset);
//......
// for example I'm doing a change like this
ds.Tables[2].Rows[1][3] = "S";
//Then updating the database
MySqlCommandBuilder com = new MySqlCommandBuilder(mydataadapter);
mydataadapter.Update(dataset, "table2");
然后它返回此错误
TableMapping['table2'] or DataTable 'table2' didn't find by Update.
你有什么建议吗?
答案 0 :(得分:3)