SQLQuery countSqlQuery = userDAO.createSQLQuery("select count(id) from fhcb_08_tbl_user");
        BigInteger totalCount=null;
        if(databaseutil.getValue("database").equalsIgnoreCase("sqlserver")){
        	 totalCount = BigInteger.valueOf(((Integer)countSqlQuery.uniqueResult()).intValue());
        }else if(databaseutil.getValue("database").equalsIgnoreCase("mysql")){
        	 totalCount = (BigInteger)countSqlQuery.uniqueResult();
		}else if(databaseutil.getValue("database").equalsIgnoreCase("oracle")){
       	 totalCount =((BigDecimal)countSqlQuery.uniqueResult()).toBigInteger();
		}

  

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2021-11-07
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2022-01-27
  • 2022-01-06
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案