C#数据更新(一)
将源表某条数据更新到目标表某条数据中
在不明确目标表中是否有一一对应的字段时,将数据更新到目标表
public bool UpdateAtoB(DataTable surTable)
{
DataTable tarTable = new DataTable();
SqlConnection conn = new SqlConnection(connStr);
conn.Open();
try{
string sql = string.Format("select * from {0} where id='{1}'