John Wang wrote:
How to combine psql commands, such as "\copy", with shell script? Is there any sample code? For 
example, I have 10 tables and want to user the "\copy" command to import data from 10 different 
text files. I can execute the "\copy" command 10 times. But it is not convenient.


$ psql .... -f filename.sql

where filename.sql contains whatever stack of commands you wanna run.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to