Introduction to DB2 for z/OS
|
Previous topic |
Next topic |
Contents |
Glossary |
Contact z/OS |
PDF
Update statements Introduction to DB2 for z/OS |
|
|
You can change the data in a table by using the UPDATE statement or the MERGE statement.
Suppose that an employee gets a promotion. To update several items of the employee's data in the NEWEMP table that reflects the move, use this UPDATE statement: UPDATE NEWEMP SET JOB = 'MGR', DEPT = 'E21' WHERE EMPNO = '100125'; |
Copyright IBM Corporation 1990, 2010 |