Modifying Tables Without Primary Keys (DB2 for VM)

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:


Information Builders