pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tsoloane Moahloli <tsoloane@mimecast.co.za>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: date_part stored procs
Date: Mon, 29 Mar 2004 09:30:46 +0200
Message-ID: <000001c4155f$c299eb00$7b35a8c0@devel> (raw)
In-Reply-To: <28231.1080342193@sss.pgh.pa.us>

Perfect.  Thanks a lot....

-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org]
On Behalf Of Tom Lane
Sent: 27 March 2004 01:03
To: tsoloane@mimecast.co.za
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] date_part stored procs 


"Tsoloane Moahloli" <tsoloane@mimecast.co.za> writes:
>   SELECT INTO len * FROM (SELECT
> ((date_part(''year'',age(docDate))*12)+(date_part(''month'',age(docDat
> e))))
> 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

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Disclaimer
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of 
the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly 
prohibited and may be unlawful. Views and opinions are those of the sender unless clearly stated as being that of Mimecast (Pty) Ltd. 
Mimecast (Pty) Ltd is neither liable for the proper, complete transmission of the information contained in this communication, nor any 
delay in its receipt or that the mail is virus-free. Mimecast (Pty) Ltd is not liable whatsoever for loss or damage resulting from the opening 
of this message and/or attachments and/or the use of the information contained in this message and/or attachments.

Attachments:

1040329092253034002.gif (image/gif, 4.3K) download view image
1040329092253037002.gif (image/gif, 10.5K) download view image
1040329092253040002.gif (image/gif, 812B) download view image
1040329092253042002.gif (image/gif, 812B) download view image

view thread (3+ messages)

Message-ID: <000001c4155f$c299eb00$7b35a8c0@devel>
Permalink:  ../000001c4155f$c299eb00$7b35a8c0@devel/
Also on:    postgresql.org/message-id/000001c4155f$c299eb00$7b35a8c0@devel

 · 

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: tsoloane@mimecast.co.za, tgl@sss.pgh.pa.us
  Subject: Re: date_part stored procs
  In-Reply-To: <000001c4155f$c299eb00$7b35a8c0@devel>

* 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