日期:2014-05-17 浏览次数:20883 次
string sql="UPDATE 公司 SET 网址='#www.pingan.com/#' WHERE 代码='000001'"; string strcn = db.AccessConnectingString; OleDbCommand cmd = new OleDbCommand(); using (OleDbConnection cn = new OleDbConnection(strcn)) { cn.Open(); OleDbDataAdapter adp = new OleDbDataAdapter(); cmd.Connection = cn; cmd.CommandText = sql; adp.UpdateCommand = cmd; adp.UpdateCommand.ExecuteNonQuery(); cn.Close(); }
网址='#http://www.pingan.com/#'