Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F29DD9FB9D2 for ; Fri, 20 Apr 2007 14:43:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83724-06 for ; Fri, 20 Apr 2007 14:43:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by postgresql.org (Postfix) with ESMTP id 9046B9FB289 for ; Fri, 20 Apr 2007 14:43:43 -0300 (ADT) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis), id 0MKwtQ-1Hex931wLI-0004gt; Fri, 20 Apr 2007 19:43:41 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1Hex92-0000Wa-00 for pgsql-sql@postgresql.org; Fri, 20 Apr 2007 19:43:40 +0200 Date: Fri, 20 Apr 2007 19:43:40 +0200 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: Retrieve month from date Message-ID: <20070420174340.GA2003@a-kretschmer.de> References: <11604f180704200519h5d858f6ey1efbbccd52ccd0c9@mail.gmail.com> <4628CE32.A3DD.0030.0@indicator.be> <10106861.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10106861.post@talk.nabble.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! User-Agent: Mutt/1.5.9i X-Provags-ID: V01U2FsdGVkX1+Vr4sRGBldbzWloM3UyZiNKHJwxCee26Gl/zE lpbAZVouJfUETHjC/thNwOm5syhB4sTZA6+g14OrpEvhu4O+K+ 3GxMku765YYZSDpQYOc4WHIq6Ze24W8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/195 X-Sequence-Number: 28195 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