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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-general by date

  From Date Subject
Next Message Brian Avis 2003-01-30 23:21:15 Re: SELECT question
Previous Message scott.marlowe 2003-01-30 23:16:49 Re: SELECT question