Re: [GENERAL] Textmatchning

2008-09-17 Thread Daniel Verite
A B wrote: 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; "a is a part of b" can simply be expressed as: position(a in b)>0 and if you need case insensitivity: position(upper(a) in upper(b))>0 B

Re: [GENERAL] Textmatchning

2008-09-17 Thread Edoardo Panfili
A B ha scritto: 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 express

Re: [GENERAL] Textmatchning

2008-09-17 Thread Scott Marlowe
On Wed, Sep 17, 2008 at 12:36 PM, A B <[EMAIL PROTECTED]> wrote: > 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' > an