Re: Retrieve month from date

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Retrieve month from date
Date: 2007-04-20 17:43:40
Message-ID: 20070420174340.GA2003@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am Fri, dem 20.04.2007, um 10:30:16 -0700 mailte RPK folgendes:
>
> What this query will return:
>
> Select Extract(Month from 4/20/2007) from dual;
>
> I suspect "dual" is not for PGSQL but Oracle. But I need to run the above
> query. What is the replacement of "dual" in PGSQL.

Simply "select extract(month from current_date);"

>
>
> Bart Degryse wrote:

please no silly fullquote below your text.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Marlowe 2007-04-20 17:46:28 Re: Retrieve month from date
Previous Message RPK 2007-04-20 17:30:16 Re: Retrieve month from date