Re: Executing SQL commands in script files

Поиск
Список
Период
Сортировка
От Andres Ledesma
Тема Re: Executing SQL commands in script files
Дата
Msg-id 001101c2d3ca$ee669530$02001aac@maradis
обсуждение исходный текст
Ответ на Executing SQL commands in script files  ("Susan Hoddinott" <susan@perth.dialix.com.au>)
Список pgsql-novice
psql < scriptfile.txt
 
    or in a psql console
 
\i scriptfile.txt
 
----- Original Message -----
Sent: Thursday, February 13, 2003 5:15 AM
Subject: [NOVICE] Executing SQL commands in script files

Following reading through all the documentation it is not clear to me how to run a script file containing a number of SQL commands.  Presumably I do this through the psql interface but how do I tell it to run a script?

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

Предыдущее
От: Michael Weaver
Дата:
Сообщение: Returning result sets.
Следующее
От: simran
Дата:
Сообщение: Re: Executing SQL commands in script files