| java.lang.Object org.apache.derby.tools.ij
ij | public class ij (Code) | | ij is Derby's interactive JDBC scripting tool.
It is a simple utility for running scripts against a Derby database.
You can also use it interactively to run ad hoc queries.
ij provides several commands for ease in accessing a variety of JDBC features.
To run from the command line enter the following:
java [options] org.apache.derby.tools.ij [arguments]
ij is can also be used with any database server that supports a JDBC driver.
|
runScript | public static int runScript(Connection conn, InputStream sqlIn, String inputEncoding, OutputStream sqlOut, String outputEncoding) throws UnsupportedEncodingException(Code) | | Run a SQL script from an InputStream and write
the resulting output to the provided PrintStream.
SQL commands are separated by a semi-colon ';' character.
Parameters: conn - Connection to be used as the script's default connection. Parameters: sqlIn - InputStream for the script. Parameters: inputEncoding - Encoding of the script. Parameters: sqlOut - OutputStream for the script's output Parameters: outputEncoding - Output encoding to use. Number of SQLExceptions thrown during the execution, -1 if not known. throws: UnsupportedEncodingException - |
|
|