Manage Rows
In Edit mode, you can add, copy, and delete rows from an object from the Data Window.
Add a Row
Follow these steps:
-
Right-click anywhere on the grid area of the Data Window and click Add Row.
-
Enter the number of rows you want to add in the Add Row dialog and click OK. The default value is 1.
The recommended range for adding rows is 1 through 100. -
The selected number of rows are added at the end of the table in Data Window.
The newly added rows have default values depending upon the data type of the column. The default values of a column are assigned according to DB2 data type rules. You can also add a row using the <ADD ROW> option displayed at the end of the table.
Copy a Row
Follow these steps:
-
Right-click on a row and click Copy Row.
A dialog appears. -
Enter the number of times to add the row in the dialog and click OK. The default value is 1.
The row is added the specified number of times at the end the table.
Update a Row
Follow these steps:
-
Select a record from a row.
The value in the record is highlighted. -
Modify the existing value or enter a new value for the record.
The row update is logged and displayed in the Change Manager.
All the data changes of an object are logged in the Change Manager. These changes are not committed to the database unless specified. You can commit or discard the data changes from Change Manager or Data Window.
Delete a Row
To delete a row, right-click on the row and select Delete. Row deletion is committed to the database automatically.