Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is scope of pl sql developer in future?

1022


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

1209


How do I count duplicates in sql?

1113


How is sql used in oracle?

1009


How to display Row Number with Records in Oracle SQL Plus?

1047


what is normalization? : Sql dba

1087


What is the use of pl/sql table?

1068


Why is nosql good?

1029


What is the difference between sql and mysql?

1122


Why query optimization is needed?

930


How global cursor can be declare with dynamic trigger ?

2210


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1193


If a cursor is open, how can we find in a pl/sql block?

1167


What is varchar data type in sql?

1088


What is write ahead logging in sql server?

1055