Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4SCXdA94564 for ; Mon, 28 May 2001 08:33:39 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4RLS1A64185 for ; Sun, 27 May 2001 17:28:01 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4RLCGN99527 for pgsql-sql@postgresql.org; Sun, 27 May 2001 17:12:16 -0400 (EDT) (envelope-from news) From: "bugi" X-Newsgroups: comp.databases.postgresql.sql Subject: Re: batch file Date: Sun, 27 May 2001 22:12:40 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 22 Message-ID: <9erqja$3161$1@news.tht.net> References: <01C0E51F.F2E673F0.milend@ansco.com> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-sql@postgresql.org X-Archive-Number: 200105/293 X-Sequence-Number: 3130 Create the file for example command.sql and log into the database psql mydbase and write command \i command.sql Użytkownik "Milen" napisał w wiadomości news:01C0E51F.F2E673F0.milend@ansco.com... > 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