Code example for Connection

Methods: createStatement

0
        tm.commit();
    } 
 
    private static void dropTable(Connection c, String name) {
        try { 
            Statement s = c.createStatement();
            s.execute("drop table "+name);
            s.close();
        } catch (SQLException e) {
            // ignore 
        } 
    } 
 
    public void testExtVar() throws Exception { 
        initDb(); 
        go(); 
    } 
} 
Experience pair programming with AI  Get Codota for Java