Search Postgresql Archives

Re: Textmatchning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	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

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux