/// <summary> /// 功能:对传入的SQL执行查询操作,返回单个值 /// 日期:2013-05-15 /// </summary> /// <param name="sql">执行的数据库</param> /// <returns></returns> public static object ExecuteScalar(string sql) { return(OracleDBHelper.ExecuteScalar(sql, null, DataBaseType.DefaultDB)); }
/// <summary> /// 功能:对传入的SQL执行查询操作,返回单个值 /// 日期:2013-05-15 /// </summary> /// <param name="sql">执行的数据库</param> /// <param name="parList">参数</param> /// <returns></returns> public static object ExecuteScalar(string sql, List <ParameterEntity> parList) { return(OracleDBHelper.ExecuteScalar(sql, parList, DataBaseType.DefaultDB)); }