Code example for Statement

Methods: execute

0
    } 
 
    public static void fillOrdersTable(Connection conn) throws SQLException {
        Statement statement = conn.createStatement();
 
        statement.execute(DatabaseCreator.INSERT_ORDERS1);
        statement.execute(DatabaseCreator.INSERT_ORDERS2);
        statement.execute(DatabaseCreator.INSERT_ORDERS3);
        statement.execute(DatabaseCreator.INSERT_ORDERS4);
        statement.execute(DatabaseCreator.INSERT_ORDERS5);
        statement.execute(DatabaseCreator.INSERT_ORDERS6);
        statement.execute(DatabaseCreator.INSERT_ORDERS7);
        statement.execute(DatabaseCreator.INSERT_ORDERS8);
        statement.execute(DatabaseCreator.INSERT_ORDERS9);
        statement.execute(DatabaseCreator.INSERT_ORDERS10);
    } 
 
    public static void fillTestTable1(Connection conn, int numberOfRecords)
            throws SQLException { 
        Statement statement = conn.createStatement();
        for (int id = 0; id < numberOfRecords; id++) {