The easiest way to do this is to use the UPPER or LOWER function to convert your data to all upper or lower case when doing a search. For example
select text_col from your table
where upper(text_col) like '%ABC%'
would return rows that contain "abc", "ABC", "Abc", and so on.
You should also look into creating function based indexes to support this. Some case-insensitive queries will be much faster with a function based index.
Of course you also can look at implementing Intermedia Text, or some other Oracle add-on. The title of your post indicates that you're looking in that direction.
Alternatively convert all alpha data to upper or lowercase before inserting it into the database!?
But really I would advise using function based indexes though.
Only use intermedia/context if you are searching large blocks of data (such as entire documents), or want to perform pattern matching within a sentence. It really isn't worth it if you are only searching for exact matches on small text columns.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.