【发布时间】:2020-06-08 14:37:33
【问题描述】:
我正在学习 jOOQ,我完全是个菜鸟。
在尝试将 postgres 查询转换为 jOOQ 时,information_schema 遇到了一些问题。
我尝试使用它:https://www.jooq.org/javadoc/latest/org.jooq/org/jooq/Meta.html 没有运气。
例如对于一个有点像这样的语句
SELECT 1 FROM information_schema.tables
我希望DSLContext.meta().getSchemas() 能把我带到我想要的地方,但我错了。这不是 InformationSchema 的工作原理吗?
它以 Schema 对象的形式出现,但不确定如何将其作为 information_schema 访问
对不起,我完全是新手。 任何帮助将不胜感激。
【问题讨论】:
-
你到底想做什么?
-
我希望从 information_schema.tables 中获取 table_names 并与它们进行比较
标签: postgresql jooq information-schema