extract integer from string

Поиск
Список
Период
Сортировка
От Ben Ausden
Тема extract integer from string
Дата
Msg-id 4174BB57B89ED411A8BB000102A30F51220868@NAVY
обсуждение исходный текст
Список pgsql-general
hi,

does anyone know if there exists a Postgres function to extract the integer
portion of a text string?

e.g.

somefunc('109PL') --> 109
somefunc('Plot Number 106') --> 106


TIA,
ben


--
ben ausden
developer, navyblue new media
[t] 0131 553 0100
[f] 0131 553 1303
[e] benedict{at}navyblue.com

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

Предыдущее
От: vitthal
Дата:
Сообщение: Reading the database in RAM
Следующее
От: "Pat M"
Дата:
Сообщение: Re: My brain hurts - update field based on value of another table's field