oracle 查询不区分大小写比较

如你要查询name等于 yy yy是一个变量名,你不知道yy是大写还是小写对吧
可以这样查询
select × from aaa where Lower(name)=Lower(yy);

或者

select × from aaa where Initcap(name)=Initcap(yy);

posted @ 2012-03-05 19:06  有梦就能实现  阅读(793)  评论(0)    收藏  举报