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

From: "Guillermo Schulman" <guillepsql(at)hotmail(dot)com>
To: 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-13 15:37:08
Message-ID: Law12-F80hxvzSoBJHs00049b02@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Para mí lo mejor es:
select translate ('123.456.789','.','');

>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: Tue, 12 Aug 2003 19:46:15 -0400
>
>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)
>_______________________________________________
>Pgsql-ayuda mailing list
>Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
>http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda

_________________________________________________________________
¿Estás buscando un auto nuevo? http://www.yupimsn.com/autos/

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jose Ayala - INCALPACA TPX 2003-08-13 16:07:26 Re: [Pgsql-ayuda] return new, return old, trigger
Previous Message sandrigo lezcano 2003-08-13 14:21:34 Re: [Pgsql-ayuda] Paquetes RPM