获取数据库所有表

最后更新:2025-07-02 23:32:15 | 状态:未完成
1
2
3
4
5
6
7
8
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
首页 最近更新 搜索 提交 回复