3 ms·
This is a feature in psql? I must admit if it is, I'm not familiar with it.
by kenshaw 10y ago
This is a feature in psql? I must admit if it is, I'm not familiar with it.
- koolba 10y agoYes psql supports it. The syntax is "\i path/to/file.sql" or "\ir relative/path/to/file.sql". The latter is resolved relative to the parent script. Makes nesting scripts possible without losing your sanity.
- kenshaw 10y agoYes, if it's in psql, I'll get it into usql in the near future. (for certain large values of near).
- ComodoHacker 10y agoThis feature is actually borrowed from Oracle's SQLPlus.