Re: Checking for a number

Поиск
Список
Период
Сортировка
От Osvaldo Rosario Kussama
Тема Re: Checking for a number
Дата
Msg-id 4682D353.3010403@yahoo.com.br
обсуждение исходный текст
Ответ на Checking for a number  (Warren <warren@clarksnutrition.com>)
Ответы Re: Checking for a number
Список pgsql-general
Warren escreveu:
> I need to check if the last two characters of a field are a number. I am
> trying something like this but it does not want to work.
>
> substring(TRIM(field8) from '..$') SIMILAR TO '\d\d'
>
> How should I do this?
>

Try:
SELECT your_field ~ '.*[[:digit:]]{2}$';

Osvaldo


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