java - How to add "WITH" clause to SELECT query with sqlbuilder
问题描述
I am using Java and SQLBuilder from healthmarketscience.sqlbuilder and I am trying to add WITH clause to my SELECT query dynamiclly.
My current query build with:
selectQuery.addJoins(SelectQuery.JoinType.LEFT_OUTER, Table.joinToQuery);
The expected result should be:
LEFT OUTER JOIN Table WITH(table_convert_subselect=1) ON (...)
解决方案
推荐阅读
- excel - 等待 Context.sync 后如何将字符串转换为范围?
- c++ - 使用带有 LibZip 的 SDL_image 和 SDL_RWops 将 png 从 zip 加载到表面上,但无法识别 png
- python - 参数化值以在 Python 中过滤熊猫行
- python - 为什么使用 scikit-learn 管道时 self 不是类实例?
- javascript - 如何访问由参数传递的 JSON 密钥?
- python-3.x - 在 Python 中的每个字符串的开头和结尾添加一个空格
- python - 正则表达式:使用 \ 匹配带有句点的单词。不工作
- sql - 为什么将参数作为列名?
- mongodb - Spring Boot 和 MongoDB 未知运算符:$last
- html - 用 SASS 嵌套似乎对我不起作用?