Using Select Statement Edit to limit the data retrieved by FM/Db2
You can use the Enter, execute and explain SQL statements
function (option 4.3) to enter a
SELECT statement and display the results in a File
Manager/Db2 editor session. In general, if you want
to view or edit a Db2® table or view, View (option 1) and
Edit (option 2) are recommended. However, you can specify the columns to retrieve using option
4.3.
SELECT * FROM DSN8810.EMP
However,
the following statement retrieves only the listed columns: SELECT EMPNO, FIRSTNME, MIDINIT, LASTNAME, WORKDEPT, PHONENO,
HIREDATE, JOB, EDLEVEL, SEX, BIRTHDATE FROM DSN8810.EMP
widerow, omitting long VARCHAR or VARGRAPHIC columns may dramatically reduce the amount of data retrieved by FM/Db2 and loaded into the editor.
Related tasks
- View and Edit options (options 1 and 2)
- Storage considerations
- Entering, executing, and explaining SQL statements
Related references