In particular, I'm looking for a way to more easily rewrite my like queries without having to use the "lower" function each time.
In SQL Server, my query would look like this:
WHERE (FIELD LIKE '%Foot%Locker%' or FIELD LIKE '%Foot%Action%' or FIELD LIKE '%Champs%')
In PostgreSQL, I must rewrite each query as such (if I want my query to capture both Foot Locker AND foot locker and any other caps driven permutation):
WHERE (lower(FIELD) LIKE lower('%foot%locker%') or lower(FIELD) LIKE lower('%foot%action%') or lower(FIELD) LIKE lower('%champs%')
This, of course, is very annoying. I have to rewrite 100s of queries. Is there an easy workaround?