SQL question

Поиск
Список
Период
Сортировка
От hamann.w@t-online.de
Тема SQL question
Дата
Msg-id wolfgang-1230114173256.A0116016@linux-tuxedo
обсуждение исходный текст
Список pgsql-general
Hi,

I have atable with a "name" column, and I order it usually
order by regexp_match(name, 'regex1'), regexp_match(name, 'regex2')
orthe equivalent
order by (regexp_match(name, 'regex1'))[1], (regexp_match(name, 'regex2'))[2]

Is there a wayto create a function so the statement could read
select ... order by myfunc(name)

Best regards
Wolfgang






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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: row estimate for partial index
Следующее
От: HECTOR INGERTO
Дата:
Сообщение: Are ZFS snapshots unsafe when PGSQL is spreading through multiple zpools?