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

Cite the differences between execution of triggers and stored procedures?

606


How do I make sql search faster?

550


What is sql basics?

571


Explain how to use transactions efficiently : transact sql

523


What is crud sql?

534






How delete a row in sql?

526


How to run sql*plus commands in sql developer?

578


What does t sql mean?

525


Can we call a function containing dml statements in a select query?

537


Is it possible to include an insert statement on the same table to which the trigger is assigned?

555


Is sql developer case sensitive?

510


Why do we create views in sql?

547


How do I order columns in sql?

522


How do I run a sql query in pgadmin 4?

539


How many types of cursors supported in pl/sql?

582