Insert psql commands inside a script

Поиск
Список
Период
Сортировка
От Letnes, David G.
Тема Insert psql commands inside a script
Дата
Msg-id 2F1DE8CC97C00645B9FEA539982DA22401900D5A@USEA-EXCH4.na.uis.unisys.com
обсуждение исходный текст
Ответы Re: Insert psql commands inside a script  (Michael Fuhr <mike@fuhr.org>)
Re: [despammed] Insert psql commands inside a script  (Andreas Kretschmer <akretschmer@despammed.com>)
Список pgsql-sql
<br /><p><font face="Arial" size="2">  I have used the psql -f /tmp/SelectCommands.sql before, but now I want to put
thesql statement right in the shell script.  I haven't had any luck.  Is there a command I can use that will not point
toa file for the sql instructions but right on the same line.  I use very short psql commands and would like to do it
allwith 1 file.</font><p><font face="Arial" size="2">Thank You</font><br /><font face="Arial"
size="2">David</font><ul><p><b><fontcolor="#000000" face="Arial" size="1">THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL
AND/OROTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error,
pleasecontact the sender and delete the e-mail and its attachments from all computers. </font></b><br /></ul> 

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: C function - other process
Следующее
От: "Ramakrishnan Muralidharan"
Дата:
Сообщение: Re: 'Select INTO" in Execute (dynamic query )