Click here to Skip to main content
15,887,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a DB where I am not allowed to change the schema and the tables do not have last mod time in them.
I need to query this DB data daily and check if there are any rows that changed. I thought combining the columns and hashing it with one of the columns also as key of hash, and write the output to a flat file.
The next day, I would query the same DB and compare the new hash with a hash created by reading the flat file.

select hashbyte('md5', a+b+c), a from table1 where s='1';

I write the output to a file using Perl's Storable and read it using retreive.

What I found is that even if the columns b & c for a row has changed it does not recognize if there is any difference.

Any suggestions? Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900