Thread: 'Include' function in SQL scripts

'Include' function in SQL scripts

From
Alessio Bragadini
Date:
I was wondering if PostgreSQL supports some kind of #include between SQL
script files, to split a long script in different files.

-- 
Alessio F. Bragadini        alessio@albourne.com
APL Financial Services        http://village.albourne.com
Nicosia, Cyprus             phone: +357-2-755750

"It is more complicated than you think"    -- The Eighth Networking Truth from RFC 1925


Re: 'Include' function in SQL scripts

From
Peter Eisentraut
Date:
Alessio Bragadini writes:

> I was wondering if PostgreSQL supports some kind of #include between SQL
> script files, to split a long script in different files.

If you're using the psql client then \i filename can be used.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/