thanks alot for your help. Dimitris
Quoting Grzegorz Jaśkiewicz <[email protected]>:
SELECT ... from ..... WHERE X LIKE pattern || '%' ORDER BY length(pattern) DESC LIMIT 1; ??? basic prefix matching for telcos :P -- GJ
-- Sent via pgsql-general mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general
