DB2 for VM lets you modify tables with duplicate rows. Such tables cannot possibly have a primary key since no combination of column values can make a given row unique.
The DB2 for VM Data Adapter provides a way of maintaining tables with duplicate rows. You describe these tables with the attribute KEYS = 0 in the Access File, and the data adapter invokes special SQL syntax to maintain them. It adds the WHERE CURRENT OF cursor_name clause to the SQL UPDATE and DELETE statements it generates from MODIFY procedures. (cursor_name is a data adapter-generated value.) This syntax causes the RDBMS to keep track of the rows being updated.
Note:
When KEYS = 0, FOCUS does not request the rows in a particular order. As a result, rows retrieved with the NEXT command arrive unordered. Moreover, the RDBMS determines the retrieval sequence, and it may vary each time the MODIFY procedure executes.
Information Builders |