Code example for Statement

Methods: closeexecuteUpdate

0
        } 
        try { 
            con = DriverManager.getConnection(url, "root", "admin");
 
            stmt = con.createStatement();
            stmt.executeUpdate(createString);
            stmt.close();
            con.close();
        } catch(SQLException ex) {
            System.err.println("SQLException: " + ex.getMessage());
        } 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE