I'm using Derby and I can't find a way to do case insensitive search.
For example, I have a table that I'm searching that contains "Hello" but I put a search query in for "hello" and at the moment I won't get a result, but I want to.
I can't find the correct syntax for it.
Sara
You can use the UPPER() or LOWER() SQL functions on both your search argument and the field, like in
SELECT *
FROM mytab
WHERE UPPER(lastname) = UPPER('McDonalds')
The most common way to do this is to use generated columns. Here's a nice writeup from one of the Derby developers: http://blogs.oracle.com/kah/entry/derby_10_5_preview_generated