| От | Tom Lane |
|---|---|
| Тема | Re: variable substitution in SQL commands |
| Дата | |
| Msg-id | 16258.1264971980@sss.pgh.pa.us обсуждение |
| Ответ на | variable substitution in SQL commands (bill house <wchouse@bellsouth.net>) |
| Ответы |
Re: variable substitution in SQL commands
|
| Список | pgsql-novice |
bill house <wchouse@bellsouth.net> writes:
> I am trying to learn how to construct SQL commands using information
> derived from other SQL commands/querys.
> These commands are stored for the moment in a simple text file which
> would be executed by the psql client like so:
> current_database=# \i sql_command_file.sql
This is really getting beyond what you can do usefully with a simple
psql text file. My first suggestion would be to see if you can write
what you need as a plpgsql function.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера