Re: Case Sensitive "WHERE" Clauses? - Mailing list pgsql-sql

From Kevin Houle
Subject Re: Case Sensitive "WHERE" Clauses?
Date
Msg-id 3D952435.4050207@houle.org
Whole thread Raw
In response to Case Sensitive "WHERE" Clauses?  (Jordan Reiter <jordan@breezing.com>)
List pgsql-sql
Jordan Reiter wrote:
> Are string comparisons in postgresql case sensitive?
> 
> I keep on having this response:
> 
> SELECT *
> FROM People
> WHERE first_name='jordan'
> 
> Result: 0 records
> 
> SELECT *
> FROM People
> WHERE first_name='Jordan'
> 
> Result: 1 record

It's case-sensitive. You can do this:

SELECT *
FROM People
WHERE lower(first_name) = 'jordon'

Kevin



pgsql-sql by date:

Previous
From: Ian Barwick
Date:
Subject: Re: PL/pgsql
Next
From: Greg Johnson
Date:
Subject: Re: Passing array to PL/SQL and looping