CHAR to INT

Поиск
Список
Период
Сортировка
От Martín Marqués
Тема CHAR to INT
Дата
Msg-id e73de96e0807120615n13a673e5tf2c933ab5178c0b8@mail.gmail.com
обсуждение исходный текст
Ответы Re: CHAR to INT  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-sql
I'm trying to make a PL function to pass from an alphanumeric string
to a numeric one changing the chars in the string to it's ORD (the
inverse of the chr function) and I'm stumbling with two problems:

1) How to know if the CHAR is numeric or not.
2) If it's not numeric I want to get it's ord, but I can't find
something like that in PG.

Any ideas?

--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

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

Предыдущее
От: Ragnar
Дата:
Сообщение: Re: Problem in dynamic query execution in plpgsql
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Rollback in Postgres