From: Harald Fuchs <hf0731x@protecting.net>
To: pgsql-sql@postgresql.org
Subject: Re: DBD::Pg ... how would I format this prepare?
Date: 31 Jul 2006 17:30:14 +0200
Message-ID: <pulkq9hjw9.fsf@srv.protecting.net> (raw)
References: <20060726182806.A1188@ganymede.hub.org>
In article <20060726182806.A1188@ganymede.hub.org>,
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> I need to do:
> NOW() + '2 day'::interval
> where 2 is a variable ...
> if I do:
> NOW() + '? day'::interval
> it, of course, takes the ? as a literal ... so is there some way I can
> do this such that I can do the placeholder?
How about the following?
now() + ? * '1 day'::interval
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: hf0731x@protecting.net
Subject: Re: DBD::Pg ... how would I format this prepare?
In-Reply-To: <pulkq9hjw9.fsf@srv.protecting.net>
* 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