com.darwinsys.sql
Class SQLRunner

java.lang.Object
  extended by com.darwinsys.sql.SQLRunner

public class SQLRunner
extends java.lang.Object

Class to run an SQL script, like psql(1), SQL*Plus, or similar programs. Command line interface accepts options -c config [-f configFile] [scriptFile].

Input language is: escape commands (begin with \ and MUST end with semi-colon), or standard SQL statements which must also end with semi-colon);

Escape sequences:

This class can also be used from within programs such as servlets, etc.; see SQLRunnerGUI for an example of how to call.

For example, this command and input: SQLrunner -c testdb \ms; select * from person where person_key=4; might produce this output:

 Executing : <