Code example for Statement

Methods: close, executeUpdate

0
    } 
 
    private void executeSql(final String sql) throws SQLException {
        this.sql = sql;
        final Statement stmt = connection.createStatement();
        stmt.executeUpdate(this.sql);
        stmt.close();
    } 
 
    public static interface ErrorHandler { 
 
        void handleError(ScriptRunner scriptRunner, SQLException e) throws SQLException;
    } 
}