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

How do I run a pl sql procedure in sql developer?

1022


What is the use of non clustered index?

1045


Why do we need cursors in pl sql?

1160


Explain clause in sql?

1073


How many types of relationship are there?

1084


What are the two types of exceptions.

1222


how can we destroy the cookie? : Sql dba

1082


how can I make a script that can be bi-language (supports english, german)? : Sql dba

1068


How does postgresql compare to mysql?

1080


How do you determine the current isolation level? : Transact sql

1206


what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba

1105


What is auto increment in sql?

1180


What is the difference between left and left outer join?

994


What is dynamic sql in pl sql?

1090


What is clustered and nonclustered index in sql?

987