Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Way to know which column is being updated

$a!Aug 2 2017 — edited Aug 11 2017

Hi All,

I have a table of 60 columns and million rows.

Now if any column is updated(of any row),I should get a log somewhere(in another table) that this particular column is updated.

I know, we can use triggers and check for

if old.col1<>new.col1 then ..

.

.

.

but since there are many columns and they might increase/ decrease in future, this type of trigger creation is hectic.

So, i am hoping if there is any other simpler way to know which column/columns are being updated.

Thanks,

Sail

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2017
Added on Aug 2 2017
16 comments
6,618 views