开发者

Java: JDOQL startsWith query, case sensitive

I'm using the .startsWith() filter in a JDOQL query but it's case sensitive. So start开发者_Go百科sWith("ab") doesn't return "Abc" result and so on.

Will I need to use a SQL query to avoid this ?


So combine it with toUpperCase() then perhaps field.toUpperCase().startsWith("AB")

Edit : fix method names

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜