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

Can we use having without group by in sql?

555


Is sql dba a good career? : SQL DBA

539


What are the commands used in sql?

531


Does sql full backup truncate logs?

533


What pl/sql package consists of?

638






Can we use threading in pl/sql?

523


Does sql require a server?

532


How long does it take to learn pl sql?

610


how to include character strings in sql statements? : Sql dba

556


How can you get sql*loader to commit only at the end of the load file? : aql loader

556


What is data control language?

532


what is the stuff function and how does it differ from the replace function? : Sql dba

624


what are the performance and scalability characteristics of mysql? : Sql dba

534


What does count (*) do in sql?

528


What is the main difference between sql and pl/sql?

569