Case-insensitive LIKE select - is it possible?
Posted in 1996
Ewan McPhail — — source: Informix-list mailing list archive (1991-1998)
Greetings all,
I have a (simple?) problem which is causing a great deal of trouble. Is
there any way to get Informix to do a
case-insensitive comparison in the WHERE clause of a SELECT statement? (ie
SELECT * FROM sometable
WHERE detailfield LIKE %spaghetti%). I'm coding in Netscape LiveWire Pro
with Informix 7.12. My only othersolution is to convert each returned string to lower case and compare with
the search string, but this defeats the
object of using the database (speed).
If anyone knows a solution for this, please reply to this group or mail me
at
murphy@beastie.cs.und.ac.za
Thanks
Andrew
Varsity student, part-time Web coder and Unix addict