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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DBD::Pg ... how would I format this prepare?
Дата
Msg-id 18726.1153951068@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DBD::Pg ... how would I format this prepare?  ("Marc G. Fournier" <scrappy@postgresql.org>)
Список pgsql-sql
"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


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: DBD::Pg ... how would I format this prepare?
Следующее
От: "Jim Buttafuoco"
Дата:
Сообщение: Re: DBD::Pg ... how would I format this prepare?