From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc G. Fournier <scrappy@postgresql.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: DBD::Pg ... how would I format this prepare?
Date: Wed, 26 Jul 2006 17:57:48 -0400
Message-ID: <18726.1153951068@sss.pgh.pa.us> (raw)
In-Reply-To: <20060726182806.A1188@ganymede.hub.org>
References: <20060726182806.A1188@ganymede.hub.org>
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> 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?
NOW() + n * '1 day'::interval
n can be any numeric value ...
regards, tom lane
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, scrappy@postgresql.org
Subject: Re: DBD::Pg ... how would I format this prepare?
In-Reply-To: <18726.1153951068@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