Closes Match

Поиск
Список
Период
Сортировка
От Christian Rusa
Тема Closes Match
Дата
Msg-id 42E521DF.4000804@rusa.at
обсуждение исходный текст
Ответы Re: Closes Match  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
Hi there,

I want to match a string against the database and get the closest 
(shorter) match.
I was asking myself if its possible to realise this in SQL.

So if the string is:
abcdefg

And in the database are entries like:
a
ab
abc

I just want to get back 'abc'.

I looked around in the internet and the documentation but found no solution.

Cheers Christian

В списке pgsql-sql по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: update vs unique index
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Closes Match