Re: Non case sensitive - Mailing list pgsql-novice

From Brendon Gleeson
Subject Re: Non case sensitive
Date
Msg-id 44E07AA0.3080702@gleesonprop.co.za
Whole thread Raw
In response to Non case sensitive  ("roy simkes" <roysimkes@hotmail.com>)
List pgsql-novice
roy simkes wrote:
 > Is there a way that select's where clause can be used as insensitive to
the case? I mean:
 > "SELECT * FROM table WHERE field LIKE 'f' " will return every row that
field begins with a "f" or a "F". Without writing " field LIKE 'f' OR field
LIKE 'F' " of course.


try:
"SELECT * FROM table WHERE LOWER(field) LIKE 'f'"

or:
"SELECT * FROM table WHERE LOWER(field) LIKE LOWER(x)" <-- if using
variable "x"

pgsql-novice by date:

Previous
From: Sean Davis
Date:
Subject: Re: Non case sensitive
Next
From: "roy simkes"
Date:
Subject: Re: Non case sensitive