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 are pl/sql cursor exceptions?

583


define sql update statement ? : Sql dba

594


How do I write a sql query in pgadmin 4?

565


What is information schema in sql?

588


Is join and inner join the same?

553






What is clustered and nonclustered index in sql?

510


Enlist the data types that can be used in pl/sql?

583


Does a primary key have to be a number?

533


What are sql commands?

511


What is a unique constraint?

616


Do foreign keys improve performance?

555


How to use boolean type in select statement?

594


What are the syntax and use of the coalesce function?

563


How do you delete data from a table?

552


How to connect a sql*plus session to an oracle server?

631