Oracle模糊查询区分大小写,解决方法:
查询条件使用UPPER()或LOWER()修饰,同时查询参数传入大写或小写
例如 select t.name from table t where t.name like '%text%'; --> select t.name from table t where UPPER(t.name) like UPPER('%TEXT%');
本文介绍了Oracle数据库中进行模糊查询时如何解决大小写敏感的问题。通过使用UPPER()或LOWER()函数转换查询条件和参数,可以确保大小写不敏感的匹配。
Oracle模糊查询区分大小写,解决方法:
查询条件使用UPPER()或LOWER()修饰,同时查询参数传入大写或小写
例如 select t.name from table t where t.name like '%text%'; --> select t.name from table t where UPPER(t.name) like UPPER('%TEXT%');
2201

被折叠的 条评论
为什么被折叠?