Could someone please guide me on how to use soundex in jOOQ. I tried looking into jOOQ documentation but it is not clear. Please provide an example if possible.

有帮助吗?

解决方案

I suspect this is about the SQL Server SOUNDEX() function? There's currently no native support for this function in jOOQ 3.2, although support is on the roadmap with #2969. As always with unsupported stuff in jOOQ, you can resort to plain SQL, creating a custom Field like this:

Field<String> fn = DSL.field("SOUNDEX({0})", String.class, argument);

See the DSL.field() Javadoc for details.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top