我想从数据库当中求总数,但是不知道怎么写了public int getMin(String str){
int count =0;
try {
Statement stmt = SumCard.getConnection().createStatement();
ResultSet rs  = stmt.executeQuery(str) ;

 
 
 
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return count;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
new SumCard().getMin("select min(cjsj) from t_cards t ");
}