CHAR to INT - Mailing list pgsql-sql

From Martín Marqués
Subject CHAR to INT
Date
Msg-id e73de96e0807120615n13a673e5tf2c933ab5178c0b8@mail.gmail.com
Whole thread Raw
Responses Re: CHAR to INT  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: Ragnar
Date:
Subject: Re: Problem in dynamic query execution in plpgsql
Next
From: "Scott Marlowe"
Date:
Subject: Re: Rollback in Postgres