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 an alias command?
Can we use two order by clause in query?
What is a sql schema used for?
What is rtm stands for?
Can you do multiple joins in sql?
What is sql*loader and what is it used for? : aql loader
What is the difference between a query and a report?
Explain the the update statement in sql?
What are the parts of a sql statement?
Why triggers are used?
What are the different tcl commands in sql?
What are pl sql data types?
What is the difference between subquery and correlated query?
Is big data nosql?
What are analytical functions in sql?