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());
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java