Is there a way in Oracle to make a column not case sensitive?
13:46 09 Dec 2011

I want to select rows from a table called Users where the column Logon is equal to "foo" - However, I also want to return "Foo" or "FOO".

I could do something like:

SELECT Id, Name FROM Users WHERE UPPER(Logon) = 'FOO';

And then convert my parameter to uppercase. However, in our code we have literally hundreds of spots where we'd have to update this.

Is there a way to make the table schema itself case-insensitive so these queries will just work without modification? Thanks!

UPDATE

I'd rather not change case-sensitivity in the entire database or at the session level. Changing SQL queries is hard since we use the .NET Entity Framework and have LINQ queries against this table all over the place. It doesn't appear the EF supports automatically converting case unless you want to change every LINQ query as well.

sql oracle-database entity-framework oracle11g case-insensitive