How can we Get the Updated Rows? ie, There is 100s of Rows i
updated the Rows who have salary 5000. then i want to select
the Updated Rows. How can we achieve it?

Answer Posted / mahesh

create table t1 as select * from emp where 1=2;

create or replace trigger t1
after update on emp
for eachrow
begin
insert into t1
values(empno,'ename',job,'hiredate',sal,comm,deptno);

end;
after create trigger
then u updated.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference between delete and truncate commands? : Sql dba

574


who introduced sql?

567


Why do we use procedures?

512


Why use triggers in sql?

496


How do you bind variables in pl sql?

578






Which is the correct statement about truncate and delete?

525


How many types of normalization are there?

487


Does sql view stored data?

534


What is implicit cursor in pl sql?

537


Why do you partition data?

530


how are mysql timestamps seen to a user? : Sql dba

561


How insert into statements in sql?

586


What is set transaction?

580


What is rownum and rowid?

565


Where do we use pl sql?

549