Re: [SQL] Partial Search - Mailing list pgsql-sql

From Wim Ceulemans
Subject Re: [SQL] Partial Search
Date
Msg-id 384554CF.924BF895@nice.be
Whole thread Raw
In response to Partial Search  (pez@aiming.net)
List pgsql-sql
pez@aiming.net wrote:
> 
> I am trying to do a query with a partial search but don't know the
> syntax.  eg. I want the word 'buff' to find 'buffalo' in the variable
> 'city'.  Can anyone give me an example?
> 

select * from table where city like '%buff%';

or case insensitive:

select * from table where city ~* 'buff';


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] VACUUM PROBLEM
Next
From: Satyajeet Seth
Date:
Subject: Except operation