Java获取连接的数据库名称 conn = DBHelperConn.getConn(id);ps = conn.prepareStatement(sql);String str = conn.getCatalog();