From: Mathieu Arnold <mat@mat.cc>
To: pgsql-sql@postgresql.org
Subject: Re: DBD::Pg ... how would I format this prepare?
Date: Mon, 31 Jul 2006 13:56:18 +0200
Message-ID: <9DC3746EE73F939BF99CC882@andromede.in.absolight.net> (raw)
In-Reply-To: <20060726182806.A1188@ganymede.hub.org>
References: <20060726182806.A1188@ganymede.hub.org>
+-le 26/07/2006 18:29 -0300, Marc G. Fournier a dit :
|
| 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?
I think that ! is what you're looking for.
--
Mathieu Arnold
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: mat@mat.cc
Subject: Re: DBD::Pg ... how would I format this prepare?
In-Reply-To: <9DC3746EE73F939BF99CC882@andromede.in.absolight.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