使用upper或lower函数
SQL> select bbb from a1 where upper('www')=upper(bbb);BBB
----------
www
WWWSQL> select bbb from a1 where lower('www')=lower(bbb);BBB
----------
www
WWW
SQL> select bbb from a1 where upper('www')=upper(bbb);BBB
----------
www
WWWSQL> select bbb from a1 where lower('www')=lower(bbb);BBB
----------
www
WWW
但是对建了索引的字段使用函数,在查询时性能不会提高。