Re: DBD::Pg ... how would I format this prepare?

From: Mathieu Arnold <mat(at)mat(dot)cc>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: DBD::Pg ... how would I format this prepare?
Date: 2006-07-31 11:56:18
Message-ID: 9DC3746EE73F939BF99CC882@andromede.in.absolight.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

+-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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message John DeSoi 2006-07-31 12:17:19 Re: Triggers using PL/pgSQL
Previous Message Manlio Perillo 2006-07-31 08:57:43 Re: primary keys as TEXT