/// <summary> /// 查询 /// </summary> /// <param name="sql"></param> /// <returns></returns> public static DataTable Query(string type, string key, string sql) { DataTable dt = null; if (type.Equals("")) { type = DbTypes.SQL; } switch (type) { case DbTypes.SQL: dt = SqlModel.Query(key, sql); break; case DbTypes.ORA: dt = OracleModel.Query(key, sql); break; } return(dt); }
public static DataTable Query(string sql) { return(SqlModel.Query("SQL_HGHY", sql)); }
public static DataTable Query(string sql) { return(SqlModel.Query(DbKey.SQL, sql)); }