SQL 命名查询中的 Hiberate 变量架构名称
除了默认模式之外,对于某些 SQL 查询,我需要访问特定模式。问题是该特定模式的名称对于不同的环境是不同的。
经过一番研究后,我发现使用这个 链接 我可以指定变量中的模式名称。如果这是真的,我有以下问题:
- 这会适用于命名查询中的 SQL 查询吗?
- 如何设置变量名的值?
提前致谢。
Other than default schema, for some SQL queries I need to access a particular schema. The issue is that the name of that particular schema is different for different environments.
After goggling I found that using this link I am able to specify the schema name in variable. If that’s true that I have following questions:
- Will that would for SQL queries in the named query?
- How to set the value for the variable names?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)