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
What is primary key secondary key alternate key candidate key?
What does (*) mean in sql?
What is a sql select statement?
Why is sql*loader direct path so fast?
What is mutating trigger?
What is a unique key?
What is the difference between cross join and natural join?
How to handle bulk data?
What is an ndf file?
what is rollback? : Sql dba
what is the difference between where clause and having clause? : Sql dba
Why do we need a foreign key?
what is myisam? : Sql dba
Mention what are different methods to trace the pl/sql code?
Can we use ddl statements in stored procedure?