Textmatchning

From: "A B" <gentosaker(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Textmatchning
Date: 2008-09-17 18:36:13
Message-ID: dbbf25900809171136g5f8829f9j39bef9f84b515f05@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi.
I would like to compare two columns a and b and find all cases where
a is a part of b, like this
select * from mytable where a ilike b;

but that will not give me a row in the case when a = 'foo' and b='FOOTBALL'
and I want that to be a match.

So how do I rewrite my expression? I can't find any way to add % to
make it match the way I want.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Korry Douglas 2008-09-17 19:11:01 Re: Index order
Previous Message Gauthier, Dave 2008-09-17 17:31:23 8.3.3 stability ?