Code example for Statement

Methods: execute

0
    } 
 
    public static void fillCustomersTable(Connection conn) throws SQLException {
        Statement statement = conn.createStatement();
 
        statement.execute(DatabaseCreator.INSERT_CUSTOMERS1);
        statement.execute(DatabaseCreator.INSERT_CUSTOMERS2);
        statement.execute(DatabaseCreator.INSERT_CUSTOMERS3);
        statement.execute(DatabaseCreator.INSERT_CUSTOMERS4);
        statement.execute(DatabaseCreator.INSERT_CUSTOMERS5);
        statement.execute(DatabaseCreator.INSERT_CUSTOMERS6);
        statement.execute(DatabaseCreator.INSERT_CUSTOMERS7);
    } 
 
    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);