DB2
DB2
SELECT * will display all the Columns in the Order in which they were created
DELETE FROM EMPLOYEE_TABLE ; this will Delete All Rows from the Table
UPDATE EMPLOYEE_TABLE
SET EMP_BASIC = EMP_BASIC * 1.1
,EMP_HRA = EMP_BASIC * 0.1
WHERE EMP_ID = 999999 this will Update All Rows from the Table where
Condition is satisfied
UPDATE EMPLOYEE_TABLE
SET EMP_BASIC = EMP_BASIC * 1.1
,EMP_HRA = EMP_BASIC * 0.1
WHERE EMP_LOC = 'PUNE' this will Update All Rows from the Table where
Condition is satisfied
UPDATE EMPLOYEE_TABLE
SET EMP_BASIC = EMP_BASIC * 1.1
,EMP_HRA = EMP_BASIC * 0.1 ; this will Update All Rows from the Table
1) ON DELETE RESTRICT =
- execute CRTREF1
- execute INSREF1
- execute PROCESS1
3) ON DELETE CASCADE =
- execute CRTREF3
- execute INSREF3
- execute PROCESS3
++++++++++++++++++++++