摘要:
public int ExcuteCommand(string sql) { int result = -1; OleDbConnection myconn = getcon(); OleDbTransaction trans = myconn.BeginTransaction(IsolationLevel.ReadCommitted); try { OleDbCommand cmd = new OleDbCommand(sql, myconn); cmd.Transaction = trans; trans.Commit(); result = cmd.ExecuteNonQuery(); 阅读全文