Re: substitute variable in sql?

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: substitute variable in sql?
Дата
Msg-id m3wuo1fca4.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на substitute variable in sql?  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
Ответы Re: substitute variable in sql?
Список pgsql-general
"Johnson, Shaunn" <SJohnson6@bcbsm.com> writes:

> Running PostgreSQL 7.2.1 on RedHat Linux 7.2:
>
> I have a query where I have to replace the
> date parameter each time I run the query.
>
> Is there a way to substitute just the date
> parameter in the sql without having to
> edit the script, re-run and edit again?

There are loads of ways to do this.  What client language are you
using?  Are you running 'psql' from a shell script?

-Doug

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

Предыдущее
От: "Johnson, Shaunn"
Дата:
Сообщение: substitute variable in sql?
Следующее
От: "Johnson, Shaunn"
Дата:
Сообщение: Re: substitute variable in sql?