Re: funcion Val

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Carlos Alberto Mÿffffffffffe1rquez Rey <carlos_marquez_rey(at)yahoo(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: funcion Val
Date: 2005-08-17 16:54:02
Message-ID: 20050817165402.GB24042@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Wed, Aug 17, 2005 at 10:43:34AM -0500, Carlos Alberto Mÿffffffffffe1rquez Rey wrote:

> Existe una funcion que convierte un numero que este
> en texto a numeric, es decir la tipica funcion val

Primera vez que escucho hablar de una funcion val ...

En todo caso, para eso no necesitas una funcion, basta con una
conversion de tipo, en ingles un "cast". Es decir,

select cast(campo_de_texto as numeric)
o
select campo_de_texto::numeric

--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"Everybody understands Mickey Mouse. Few understand Hermann Hesse.
Hardly anybody understands Einstein. And nobody understands Emperor Norton."

In response to

  • funcion Val at 2005-08-17 15:43:34 from Carlos Alberto Mÿffffffffffe1rquez Rey

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Moises Alberto Lindo Gutarra 2005-08-17 17:41:12 Re: SuSe o Mandrake? para postgres
Previous Message Alvaro Herrera 2005-08-17 16:52:05 Re: pregunta