只能查出表明,怎么用程序实现统计有多少张表啊~
------解决方案--------------------
那就只能一条条COUNT了
DatabaseMetaData metaData = conn.getMetaData();
ResultSet rs = metaData.getTables(null,null,null,new String[] { "TABLE"});
int cnt = 0;
while(rs.next()) {
cnt++;
System.out.println(rs.getString("TABLE_NAME"));
}