| От | Bruno Wolff III |
|---|---|
| Тема | Re: substitute variable in sql? |
| Дата | |
| Msg-id | 20021029170128.GA5942@wolff.to обсуждение исходный текст |
| Ответ на | Re: substitute variable in sql? (Doug McNaught <doug@mcnaught.org>) |
| Список | pgsql-general |
On Tue, Oct 29, 2002 at 11:19:31 -0500, Doug McNaught <doug@mcnaught.org> wrote: > "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? And also what date do you want? It may be possible to calculate it based on the current date and/or information in the database.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера