| From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
|---|---|
| To: | Eduardo <edukoski(at)montevideo(dot)com(dot)uy> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: Problemas con columna string |
| Date: | 2006-05-26 00:24:45 |
| Message-ID: | c2d9e70e0605251724l7d546057k34d452483d5d4f4f@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On 5/25/06, Eduardo <edukoski(at)montevideo(dot)com(dot)uy> wrote:
>
>
> Estimados Amigos:
> Tengo un campo (heredado de otra administracion) de tipo TEXT que guarda
> fechas en formato texto del tipo 03/05/2006. El tema es que cuando quiero
> ordenar por este campo la consulta me saca asi:
>
> 03/04/2006
> 03/05/2006
> 04/04/2006
>
> me pone mayo antes de seguir con abril.
> Como puedo solucionar esto sin tener que modificar el tipo de campo????
>
> Gracias desde ya.
> Eduardo
>
select * from tabla order by fecha_en_texto::date;
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jaime Casanova | 2006-05-26 00:33:35 | Re: pasos para que postgresql me reconozca una construccion de tabla |
| Previous Message | Alvaro Herrera | 2006-05-25 22:07:55 | Re: PROBLEMAS CON POSTGRES EN MAQUINAS MULTIPROCESADORES |