Skip site navigation (1) Skip section navigation (2)

Re: SELECT question

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Brian Avis <brian(dot)avis(at)searhc(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: SELECT question
Date: 2003-01-30 23:17:55
Message-ID: Pine.LNX.4.33.0301301616550.23648-100000@css120.ihs.com (view raw or flat)
Thread:
Lists: pgsql-general
On Thu, 30 Jan 2003, Brian Avis wrote:

> Assuming the data in the text field will resemble any of the following.
> 
> Brian K. Avis
> Brian Avis
> Brian
> 
> Or whatever combo.
> 
> 
> Brian Avis wrote:
> 
> > I want to run a SELECT on a text field and match any of the following.
> >
> > brian
> > Brian
> > BRIAN
> >
> > Or any other combination.   How do I tell SQL to ignore case when 
> > doing a SELECT?

the other method, which I forgot to add to my previous post is to user 
lower()

select * from table where lower(name) like '%bruce%';



In response to

Responses

pgsql-general by date

Next:From: Brian AvisDate: 2003-01-30 23:21:15
Subject: Re: SELECT question
Previous:From: scott.marloweDate: 2003-01-30 23:16:49
Subject: Re: SELECT question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group