Re: consulta casteo de tipo

From: Espartano <espartano(dot)mail(at)gmail(dot)com>
To: "Ana Smail" <anasmail(at)unnoba(dot)edu(dot)ar>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: consulta casteo de tipo
Date: 2007-02-22 17:01:36
Message-ID: d353bd50702220901yaab6f66g65af41dc2ae450fc@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 2/22/07, Ana Smail <anasmail(at)unnoba(dot)edu(dot)ar> wrote:
>
>
>
>
> Les consulto:
>
> Necesito que este SELECT:
>
> select current_date - interval '6 months'
>
>
>
> me devuelva un tipo date, no un TIMESTAMP. Cómo hago?
>

select cast(current_date - interval '6 months' as date);

>
>
> Gracias por su ayuda.
>
>
>
> ANA

--
"Linux is for people who hate Windows, BSD is for people who love UNIX"
"Social Engineer -> Because there is no patch for human stupidity"

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message vhr 2007-02-22 17:27:48 Comparativo de TeraManager y Postgresql
Previous Message Jorge Diaz 2007-02-22 16:58:06 Migrar Acces a PostgresSql