Code example for Statement

Methods: close, executeUpdate

0
    public void executeUpdate(String sql) throws SQLException {
        Statement st = null;
        try { 
            st = connection.createStatement();
            log.debug(sql);
            st.executeUpdate(sql.trim());
        } finally { 
            if (st != null) {
                try { 
                    st.close();
                } catch (SQLException e) {
                    //can do nothing 
                } 
            } 
 
        } 
        log.debug("Sql update Success");
 
    } 
 
    /**