获取数据库所有表

发布日期:2023-02-07
最后更新:2026-03-02 07:05:46
阅读:15,607
LinkedHashMap<string,table> tables = service.metadata().tables();
for(String key:tables.keySet()){
	Table table = tables.get(key);
	log.warn("table:"+table.getName());
	log.warn("comment:"+table.getComment());
}
方法有多个参数
Catalog catalog, Schema schema, String name, String types