pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: tsoloane@mimecast.co.za
Cc: pgsql-sql@postgresql.org
Subject: Re: date_part stored procs
Date: Fri, 26 Mar 2004 18:03:13 -0500
Message-ID: <28231.1080342193@sss.pgh.pa.us> (raw)
In-Reply-To: <000001c4133d$51447430$7b35a8c0@devel>
References: <000001c4133d$51447430$7b35a8c0@devel>

"Tsoloane Moahloli" <tsoloane@mimecast.co.za> writes:
>   SELECT INTO len * FROM (SELECT
> ((date_part(''year'',age(docDate))*12)+(date_part(''month'',age(docDate))))
> AS a;
 
> The problem is that it does not run and I cannot for the life of me tell
> why.    

I think you miscounted parentheses.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <28231.1080342193@sss.pgh.pa.us>
Permalink:  ../28231.1080342193@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28231.1080342193@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tsoloane@mimecast.co.za
  Subject: Re: date_part stored procs
  In-Reply-To: <28231.1080342193@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox