Re: EXTRAER HORA, MINUTOS Y SEGUNDOS DE TIMESTAMP

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Marcos Alberto Flores Valda <marcos(dot)flores(at)ende(dot)bo>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: EXTRAER HORA, MINUTOS Y SEGUNDOS DE TIMESTAMP
Date: 2011-11-17 19:29:21
Message-ID: CAJKUy5ha2es=viQHeqgmLsjitO0arP26z+JKP0vPSYZ91JLNqg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

2011/11/17 Marcos Alberto Flores Valda <marcos(dot)flores(at)ende(dot)bo>:
> Hola amigos de la lista,
> Quisiera preguntarles como puedo extraer de un campo tipo timestamp
> (01/04/2011 11:01:35 a.m.) la hora, minutos y segundos para luego
> concatenarla en un varchar con el siguiente formato --> 11:01:35

y si usas la funcion to_char()?
http://www.postgresql.org/docs/9.1/interactive/functions-formatting.html

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Rodrigo Gonzalez 2011-11-17 19:29:24 Re: EXTRAER HORA, MINUTOS Y SEGUNDOS DE TIMESTAMP
Previous Message ruben avila galindo 2011-11-17 19:21:02 Re: [pgsql-es-ayuda] [OT] Integración PostgreSQL Latinas