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 / srinivas

first create new table with the same structure if table_name1
then create a trigger as follws

create or replace trigger <trigger_name>
after update on <table_name1>
for each row
begin
insert into <new_table_name>
values(:new.<column_name1>,:new.<column_nam2>...... );
end;

then update table_name1 table
after that check it new table

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use cross join?

536


What is composite primary key in sql?

520


Are null values same as that of zero or a blank space?

531


How you improve the performance of sql*loader? : aql loader

575


Why do we use joins?

563






What is a call statement? Explain with an example.

545


How can I change database name in sql?

526


What does 0 mean in sql?

526


How many sql statements are used?

564


Can we use delete in merge statement?

512


How do you write an index?

524


what is bcp? When is it used?

578


What is offset and limit in sql?

547


How to run sql functions in pl/sql?

534


What sql database should I use?

547