The doSQL( ) method

// A JDBCExamples method to execute an SQL statement.

    public static String doSQL (Connection con, String action)  
           throws Exception {

        Statement stmt = con.createStatement();
        int res = stmt.executeUpdate(action);
        return "performed";
 }