62,046
社区成员
发帖
与我相关
我的任务
分享
OleDbConnection cn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=demo.mdb");
string strSql = "UPDATE [UpdateInfo] SET [Description]=? WHERE ID=? ";
OleDbCommand cmd = new OleDbCommand(strSql, cn);
cmd.Parameters.AddWithValue("?", textBox2.Text);//这个是Description
cmd.Parameters.AddWithValue("?", textBox1.Text);//这个是id
cn.Open();
cmd.ExecuteNonQuery();
cn.Close();