about quotes on stored procedures

From: qradius(at)qnet(dot)com(dot)pe
To: pgsql-general(at)postgresql(dot)org
Subject: about quotes on stored procedures
Date: 2001-11-05 18:02:05
Message-ID: 200111051803.fA5I32q59584@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear Sirs:

Please I need to construct a stored procedure with pl/pgsql ,
I need execute the query:

update expire_date=now+'expire_time seconds';

where expire_time is a variable , then I need to replace this
at the SP, but I attempted write like as:

update expire_date=now+''expire_time seconds''

but this expresion apparently is replaced as:

update expire_date=now+'expire_time seconds'

i.e this places the string expire_time but I need the
variable expire_time,

How I can to perform it?

Thank you.

I hopee your help, thank you in advance

Ernesto Freyre

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-11-05 18:08:19 Re: request for advise
Previous Message Doug McNaught 2001-11-05 17:57:09 Re: Use of Serial Datatype and Sequence Issue