Reputation: 147
I want create a file.sql that execute with:
> psql -f file.sql
in this file I want create some schemas and tables end execute other sql files:
file.sql:
create schema a ...
create schema b...
create table a.t1
create table b.t2...
execute /path/file2.sql;
execute /path/file3.sql;
Is possible?
Upvotes: 0
Views: 40