| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Juan Carlos Azogue <azoguej(at)tigo(dot)net(dot)bo> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: Oder BY a campo TIMESTAMP |
| Date: | 2007-01-04 17:34:53 |
| Message-ID: | 20070104173453.GF6047@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Juan Carlos Azogue escribió:
> SELECT nro_detalle, login, fecha_emision, nro_cuenta,
> to_char(fecha_llamada,'DD/MM/YYYY')as fecha_llamada,
> to_char(fecha_hora_llamada,'HH24:MI:SS') as fecha_hora_llamada
>
> FROM consultas.detalle_llamada
>
> WHERE nro_detalle=v_nro_detalle
>
> ORDER BY fecha_llamada, fecha_hora_llamada
SELECT nro_detalle, login, fecha_emision, nro_cuenta,
to_char(fecha_llamada,'DD/MM/YYYY')as fecha_llamada,
fecha_hora_llamada::time
FROM consultas.detalle_llamada
WHERE nro_detalle=v_nro_detalle
ORDER BY fecha_llamada, fecha_hora_llamada::time
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2007-01-04 17:41:46 | Re: varios PostgreSQL en un mismo servidor |
| Previous Message | Alvaro Herrera | 2007-01-04 17:33:32 | Re: sobre vacuum |