Re: [GENERAL] non-case sensitive searches

From: "Gene Selkov Jr(dot)" <selkovjr(at)mcs(dot)anl(dot)gov>
To: Kevin Heflin <kheflin(at)shreve(dot)net>, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] non-case sensitive searches
Date: 1999-01-13 18:40:18
Message-ID: 199901131938.NAA07607@mail.xnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> > You can also use regexp expression like this :
> >
> > SELECT * FROM photos WHERE keywords ~* '.*$cat_name.*';
> >
> > it works fine.
>
>
> Thanks for the tip. Any recommendations as to which would be faster when
> searching about 2,000 records or so..

LIKE is faster, but with 2,000 records, you won't be able to tell the
difference. It takes a blink.

--Gene

Browse pgsql-general by date

  From Date Subject
Next Message K.T. 1999-01-13 18:49:36 Additional Super User account(s)
Previous Message Dustin Sallings 1999-01-13 17:47:33 Re: [GENERAL] Tricky SQL query (tried [SQL])