Professional Documents
Culture Documents
Chapter 2 Hints
Chapter 2 Hints
In SQL In PL/SQL
You will do multiple SQL statements You can write procedure to do this
Update emp
Set sal=sal+100 Create procedure update_sal
Where dept_id=10; ( p_dept_id number , p_amount number )
Is
Update emp Begin
Set sal=sal+150 ……….
Where dept_id=20; …….
…… …….
….. End;
how to do it