Create the file for example command.sql and log into the  database psql
mydbase
and write command
\i command.sql

Użytkownik "Milen" <[EMAIL PROTECTED]> napisał w wiadomości
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all!,
>
> I want to execute several SQL statements one after another.
> Does anyone know if it is possible to create something like a "batch file"
> which contains all SQL commands I want.
>
> Best Regards:
> Milen
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html



---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to