Jooq列名称案例不敏感

发布于 2025-02-04 22:55:21 字数 117 浏览 1 评论 0原文

我正在从事一个JOOQ项目,

有什么方法可以在Jooq中制作列名称和表格案例不敏感和引用不敏感的查询。

如果列的名称在引用的大小写中,则如果我查询引用的较低案例列名称,我会遇到错误。与表名相同

I am working on a jooq project ,

Is there any way we can make column names and table names case insensitive and quote insensitive queries in jooq.

If column names are in quoted Upper case ,If I query with quoted lower case column names I am getting error . Same with table name as well

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

维持三分热 2025-02-11 22:55:21

您可能正在寻找 settings.renderquotednames 设置,例如,

settings.setRenderQuotedNames(RenderQuotedNames.EXPLICIT_DEFAULT_UNQUOTED)

这将从大多数生成的标识符中删除引号,从而使它们在大多数方言中有效地不敏感。当然,与保留单词冲突的标识符合作时,您会遇到问题。

You're probably looking for the Settings.renderQuotedNames setting, e.g.

settings.setRenderQuotedNames(RenderQuotedNames.EXPLICIT_DEFAULT_UNQUOTED)

This will remove the quoting from most generated identifiers, making them effectively case insensitive in most dialects. Of course, you will run into issues when working with identifiers that conflict with reserved words...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文