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 a unique key and primary key and foreign key?

561


What is difference between stored procedures and application procedures?

561


What are the datatypes available in pl/sql ?

603


What is difference sql and mysql?

522


How does sql profiler work?

562






What is union and union all keyword in sql?

560


How many types of primary keys are there?

520


Is sql a backend?

539


what happens if you no create privilege in a database? : Sql dba

524


In pl/sql, what is bulk binding, and when/how would it help performance?

523


What is an exception in pl/sql?

538


How to start the command-line sql*plus?

559


Whis is not false in primary key?

968


What are the operators in sql?

517


Why partition by is used in sql?

548