Re: [Pgsql-ayuda] select CAST(text '123.456.789' as int8) AS valor_sin_puntos;

From: Alvaro Herrera Munoz <alvherre(at)dcc(dot)uchile(dot)cl>
To: sandrigo lezcano <alkafes(at)yahoo(dot)com>
Cc: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Subject: Re: [Pgsql-ayuda] select CAST(text '123.456.789' as int8) AS valor_sin_puntos;
Date: 2003-08-12 23:46:15
Message-ID: 20030812234615.GE9586@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Tue, Aug 12, 2003 at 05:58:47PM -0500, sandrigo lezcano wrote:
> existe una mejor manera de hacer
> esto ..o solo haciendo una funcion ???
> quitar_puntos(var_string)
>
> o sea q
> quitar_puntos('123.456.789')
>
> resultado '123456789'

Creo que hay una funcion to_number()...

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Ni aun el genio muy grande llegaria muy lejos
si tuviera que sacarlo todo de su propio interior" (Goethe)

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Gunnar Wolf 2003-08-13 02:50:52 Re: [Pgsql-ayuda] Invocacion de una funcion
Previous Message Alvaro Herrera Munoz 2003-08-12 23:09:01 Re: [Pgsql-ayuda] HELP!! recuperacion de tablas