I have the same data table on various different database types (Microsoft SQL2005, MySql and IBM Informix, Oracle), and I need to generate a SHA-1 hash result over the data in the table that is the same across the different database types.
I am trying to determine the best way to accomplish this and so far this is what I have come up with:
Will I encounter any issues with this implementation? Such as data types from different databases causing different string results?
Also, is sorting necessary? I am assuming that the column and row ordering is not guaranteed unless defined in the query and I want this to be as dynamic as possible.
Thanks.
Watch out for numeric values, in particular with rounding and precision.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With