0

I'm using a JDBC driver to connect to a Postgres instance. During initialization, I'd like to load a full sql file. In place of INSERT INTO Table(c1, c2) VALUES (v11, v12), (v21,v22)is it possible to directly load the file using something similar to a \i file.sql? \i file.sql itself doesn't succeed.

2
  • 2
    \i is a psql command, not a SQL command. You can't use it from within Java. Commented Mar 29, 2015 at 11:33
  • @RomanKonoval Thanks, I've voted for closing mine. Commented Mar 29, 2015 at 17:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.