| От | Alan Hodgson |
|---|---|
| Тема | Re: SQL from Linux command line |
| Дата | |
| Msg-id | 201007120857.59795@hal.medialogik.com обсуждение исходный текст |
| Ответ на | Re: SQL from Linux command line (Andreas Kretschmer <akretschmer@spamfence.net>) |
| Список | pgsql-novice |
> Scott Geller <geller.subscribe@gmail.com> wrote: > > Hello > > > > Hoping for some help on this one.... > > > > I need to query postgres, run a count of specific records, and write to > > a different table based on the results all from the linux command > > line. > > > > My questions are: > > 1. Would I use psql for this? > > 2. If so, how do I structure the script to run psql from Linux? > > 3. how do I pass the value for the where clause from the command line > > into the > > > > code? Using Perl would be a lot easier. -- "No animals were harmed in the recording of this episode. We tried but that damn monkey was just too fast."
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера