db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: sql format in *.sql files
Date Fri, 15 Feb 2008 15:22:18 GMT
dexter195 <dlydon1@yahoo.co.uk> writes:

> Ok, so il just have to split them up and run them in seperatly then. Thanks
> for that.

Alternatively, you could use the runScript() method in
org.apache.derby.tools.ij, which does exactly that for you. See the
javadoc here:

http://db.apache.org/derby/docs/10.3/publishedapi/jdbc4/org/apache/derby/tools/ij.html#runScript(java.sql.Connection,%20java.io.InputStream,%20java.lang.String,%20java.io.OutputStream,%20java.lang.String)

-- 
Knut Anders

Mime
View raw message