I want to know the if condition to check whether the row in a table has been updated or not.
After checking i have to insert the changes into a new table.
please help
Thanks in advance.
How to check whether a row in the table has been edited or not
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Zoran HorvatRank #792 · 2.9K reputationPosted Jul 25, 2011, 2:05 AM EDT
Detached,
Unchanged,
Added,
Modified,
Deleted
When you're using DataTable to contain multiple DataRow objects, then you can use its GetChanges() method to get all modified/added/deleted rows. You can use its AcceptChanges() and RejectChanges() methods to automatically update the row and synchronize it with database.
Zoran
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 25, 2011, 2:22 AM EDT
use the status column to find edited or not...
When you insert a record into your database table make status as 1 and when you are updating the record make status as 2.
then you can easily find out howmany records are edited....
update table_name set name= 'your_name', status=2 where id= your_id;
then
select id, name from table_name where status=2;
i hope it help you.......