public static int count(String txyl_table) {// 获取用户数量 
    int i = 0;// Store_Information 
    Connection con = DB.getConnnection(); 
    try { 
        Statement stmt = con.createStatement(); 
        ResultSet rset = stmt.executeQuery("select count(*)as totalCount from "+ txyl_table);  
        if(rset.next()) {  
           i=rset .getInt("totalCount");  
        } 
    } catch (Exception e) { 
        System.err.println("你确定你没有输错表明么???"); 
         e.printStackTrace(); 
    } finally { 
        DB.closeConn(con); 
    } 
    System.out.println(i); 
    return i; 
} 

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-10-26
  • 2021-08-12
猜你喜欢
  • 2021-11-25
  • 2021-10-27
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-11-22
  • 2021-10-31
相关资源
相似解决方案