Home › Mainframe Tutorial › DB2 basics
DB2 basics
The relational database of z/OS.
DB2 stores data in tables and is queried with SQL. Batch programs and online programs can run SELECT, INSERT, UPDATE and DELETE. This example shows a query and the rows it returns.
Example code
SELECT NAME, DEPT
FROM STAFF
WHERE DEPT = 'A00';