jpa case-insensitive in-clause for a list of string values

邮差的信 提交于 2019-12-01 10:38:10

No you cannot. Reason is that UPPER and LOWER operate to the strings, so they do not take collection as argument.

You can always do :

from Table1 a where (upper(a.column2) = upper(:value1) 
    or upper(a.column2) = upper(:value2) 
    or ...)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!