Re: [Pgsql-ayuda] fechas....

From: "netone" <netone(at)esfera(dot)cl>
To: <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Subject: Re: [Pgsql-ayuda] fechas....
Date: 2003-08-01 03:36:26
Message-ID: 000b01c38de9$4b3bc310$0a00a8c0@regency
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

es la unica forma???
----- Original Message -----
From: "PostgreSql(at)CreaSoluciones(dot)cl" <postgresql(at)creasoluciones(dot)cl>
To: <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Sent: Thursday, July 31, 2003 3:07 PM
Subject: Re: [Pgsql-ayuda] fechas....

> > On Thu, Jul 31, 2003 at 04:01:34PM +0000, GUSTAVO MARTIN OCAMPO wrote:
> > > Hola lista!
> > > Tengo un campo tipo 'Date' del cual quiero obtener solo el a?o, por
> ejemplo:
> >
> > select extract(year from fecha_vencimiento)
> >
>
> Otra forma es usando to_char.
>
> select to_char(fecha_vencimiento, 'yyyy')
>
>
>
> Alfonso Andaur L.
> Crea Soluciones de IngenierĂ­a Ltda.
> "Creando soluciones de confianza"
>
> _______________________________________________
> Pgsql-ayuda mailing list
> Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
> http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda
>

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2003-08-01 03:53:31 Re: [Pgsql-ayuda] Nombres
Previous Message Alvaro Herrera 2003-08-01 03:18:59 Re: [Pgsql-ayuda] Ayuda para principiante