This program initiates the following set of requests in sequence.
Each request is a separate transaction.
- DROP TABLE T;
- CREATE TABLE T (I INT,I2 SMALLINT);
- USING V (INTEGER),V2(SMALLINT)INS INTO T VALUES(:V,:V2);
- UPDATE T SET I2 = I + 1;
- SEL SUM(I) FROM T;
Data values are generated by the program. The data generated for the INSERT statement are the integers 1,2,...MAXROWS for the fields I and I2 (equal values are inserted for the fields I and I2). MAXROWS can be adjusted to set the total number of rows inserted.