about quotes on stored procedures

Поиск
Список
Период
Сортировка
От qradius@qnet.com.pe
Тема about quotes on stored procedures
Дата
Msg-id 200111051803.fA5I32q59584@postgresql.org
обсуждение исходный текст
Список 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



В списке pgsql-general по дате отправления:

Предыдущее
От: "Eric Day"
Дата:
Сообщение: Re: Stored procedures
Следующее
От: "Johnson, Shaunn"
Дата:
Сообщение: postgres copy command