Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refer to multiple .sql files

Status
Not open for further replies.

bwragg

Programmer
Jan 15, 2003
1
AU
I was wondering if its possible to refer to a .sql file from another .sql file. What I want to do is run a master script (ms.sql) in psql and for ms.sql to point to child .sql scripts. e.g c1.sql, c2.sql, c3.sql.

Can you do something like the following ms.sql:

insert ....
insert ....
update ....
load c1.sql
load c2.sql
insert ....
update ....

Thanks,

Benjamin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top