Skip site navigation (1) Skip section navigation (2)

Re: Question about pattern matching

From: dimitris(dot)sakellarios(at)telesuite(dot)gr
To: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about pattern matching
Date: 2008-12-23 18:12:19
Message-ID: 20081223201219.qhzyenhdq8owwsc0@zeus.netdynamics.gr (view raw or flat)
Thread:
Lists: pgsql-general
thanks alot for your help.

Dimitris

Quoting Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>:

> SELECT ... from ..... WHERE X LIKE pattern || '%' ORDER BY
> length(pattern) DESC LIMIT 1;
>
> ???
>
> basic prefix matching for telcos :P
>
> --
> GJ
>




In response to

pgsql-general by date

Next:From: hubert depesz lubaczewskiDate: 2008-12-23 19:17:33
Subject: Re: Question about pattern matching
Previous:From: dimitris.sakellariosDate: 2008-12-23 18:11:24
Subject: Re: Question about pattern matching

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group