Re: shell scripting

Поиск
Список
Период
Сортировка
От Björn Lundin
Тема Re: shell scripting
Дата
Msg-id amii81$2j1a$1@news.hub.org
обсуждение исходный текст
Ответ на shell scripting  (Marc Tardif <intmktg@CAM.ORG>)
Список pgsql-general
Frank wrote:

> Hello,
>
> I am a PostgreSQL newbie stuck with the following question; can I write a
> unix shell script with sql statements and execute this in postgresql? In
> other databases one can use "@ /tmp/script.sql" or "start
> /path-to-script/script.sql". How can this be done in postgresql?
>
> tia,
>
> Frank
man psql

       -c, --command query
              Specifies that psql is to execute one query string,
              query,  and  then  exit.  This  is  useful in shell
              scripts.

/Björn

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

Предыдущее
От: patrick
Дата:
Сообщение: PostgreSQL consultanting oportiunity
Следующее
От: Lee Harr
Дата:
Сообщение: Re: executing sql statements from file