Class to execute SQL Queries.
Typical examples would be:
QueryExecutor qe = new QueryExecutor();
qe.executeQuery("select * from test where id=12;");
which would then print the resulting row with id 12.
If the table test does not exist, or doesn not have an id column,
a
java.sql.SQLException is being thrown.
See Also:StatementExecutor
Executes a SQL query.
Parameters: command - the SQL query to execute. the formatted result. throws: SQLException - if the database could not execute the SQL query for some reason.