Re: Executing sql script
От | Joe Erickson |
---|---|
Тема | Re: Executing sql script |
Дата | |
Msg-id | E850FBD66355494C9DEB0E62363EB68F016572A4@dtvemail.datavantage.com обсуждение исходный текст |
Ответ на | Executing sql script ("Loftis, Charles E" <charles.loftis@eds.com>) |
Список | pgsql-novice |
Just put it on the command line after psql: psql example.sql psql will take the file and run each line to the server. If the server is not on your computer, you will need to specify the hostname to the computer and a username to log into theserver with: psql -h server.postgres.com -U dba example.sql To send multiple files, just list them all: psql example1.sql example2.sql example3.sql or psql example* Run psql --help for more options. -----Original Message----- From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org]On Behalf Of Loftis, Charles E Sent: Thursday, June 03, 2004 3:24 PM To: pgsql-novice@postgresql.org Subject: [NOVICE] Executing sql script I want to execute the sql stored in a directory on my system. How do I submit this file, in batch, to pgsql to be executed? ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
В списке pgsql-novice по дате отправления: