Use JDBC Statement.

boolean execute(String SQL): return false if result of the SQL
	is an update count or there are no results. Use this method
	to execute SQL DDL statements or when you need to use truly
	dynamic SQL.
executeUpdate(String SQL) : Returns the numbers of rows affected
	by the execution of the SQL statement. Use this method to
	execute SQL statements for which you expect to get a number
	of rows affected - for example, an INSERT, UPDATE, or DELETE
	statement.
ResultSet executeQuery(String SQL) : Returns a ResultSet object.
	Use this method when you expect to get a result set, as you
	would with a SELECT statement.