
88 IBM Application Development Tools for z/OS and OS/390
Figure 2-46 Browse a DB2 table
If you enter the SQL command, you get the result shown in Example 2-34:
Example 2-34 SQL statement for table display
SELECT "DEPTNO", "DEPTNAME", "MGRNO", "ADMRDEPT", "LOCATION"
FROM "DAVINR1"."DEPT"
FOR FETCH ONLY
Editing related tables
Using the provided sample, we add one record in the DEPT table. This record
refers to another table through the MGRNO field, as shown in Figure 2-47. As there
is no corresponding reference in the related table, there is an error indicated in
the prefix area. This is the SQL error code.