/// <summary> /// 更新 /// </summary> /// <param name="type"></param> /// <param name="key"></param> /// <param name="sql"></param> public static int Execute(string type, string key, string sql) { int n = -1; if (type.Equals("")) { type = DbTypes.SQL; } switch (type) { case DbTypes.SQL: n = SqlModel.Execute(key, sql); break; case DbTypes.ORA: n = OracleModel.Execute(key, sql); break; } return(n); }
public static int Execute(string sql) { return(SqlModel.Execute("SQL_HGHY", sql)); }
public static int Execute(string sql) { return(SqlModel.Execute(DbKey.SQL, sql)); }