Re: [SQL] batch file

2001-05-29 Thread Grant
> 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. That or just separate commands by a semi colon: select * from table1; select * from table2; -

Re: [SQL] batch file

2001-05-25 Thread Jie Liang
Hi, I am not sure what's your question. However, you can list a bunch of SQL statements in a text file: e.g. myfile.sql which contains: select * from tablename where update tablename set ... where ... . then, you can just run it like: psql -q dbname < myfile.sql Jie LIANG St. Be

Re: [SQL] batch file

2001-05-25 Thread Jason Earl
I just put files commands that I want in some file like "foo.sql" and then do: psql mydatabase -f foo.sql Is this what you are looking for? Jason --- Milen <[EMAIL PROTECTED]> wrote: > Hi all!, > > I want to execute several SQL statements one after > another. > Does anyone know if it is pos

[SQL] batch file

2001-05-25 Thread Milen
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 c