我想使用GROUP BY
.
我尝试了以下一种:
ResultSet rs=s.executeQuery("SELECT attr_name, count(*)"
+ " FROM Table_name"
+ " GROUP BY attr_name;"
+ "SELECT attr_name, count(*)"
+ " FROM Table_name"
+ " GROUP BY attr_name");
但它不会来。