pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fatih Cerit <fatih@intersan.com.tr>
To: pgsql-sql@postgresql.org
Subject: plpgsql & date-time functions
Date: Tue, 8 Mar 2005 14:14:47 +0200
Message-ID: <d0k4vn$1dmm$1@news.hub.org> (raw)

I have a function and I want to update a table's two rows but having problem 
with plpgsql & date-time functions. First field of the table must be now() 
this is ok.. but the second field must be now() + '60 days' if the query 
like this : SELECT INTO to_day now() + interval '60 days' ; it works but if 
I use variable instead of  '60 days' it doesn't work. And I must use 
variable....

Thanks





view thread (2+ messages)  latest in thread

Message-ID: <d0k4vn$1dmm$1@news.hub.org>
Permalink:  ../d0k4vn$1dmm$1@news.hub.org/
Also on:    postgresql.org/message-id/d0k4vn$1dmm$1@news.hub.org

 · 

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: fatih@intersan.com.tr
  Subject: Re: plpgsql & date-time functions
  In-Reply-To: <d0k4vn$1dmm$1@news.hub.org>

* 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