oracle 模糊查询 模糊大小写

我的模糊查询需求是不区分大小写. 查询1: select * from power p where p.subSystem like '%jz%' ; 无数据... 查询2: select * from power p where p.subSystem like '%JZ%' ; 有数据... 我数据表中 subSystem 字段中的字段中凡是有这个 'jz' 字母的都是大写,即'JZ_F23566' , 怎样在用户模糊查询的时候无论输入大写还是小写,都要可以查询出这些语句. 尽量不要 '双like' 的方式.

upper(subSystem) like '%'||upper('jz')||'%' 或者是 lower(subSystem) like '%'||lower('jz')||'%'
温馨提示:内容为网友见解,仅供参考
第1个回答  2011-09-18
不清楚哦
相似回答
大家正在搜