At a given time I stored the result of the following ORACLE SQL Query :
SELET col , TO_CHAR( LOWER( STANDARD_HASH( col , 'MD5' ) ) AS hash_col FROM MyTable ;
A week later, I executed the same query on the same data ( same values for column col ).
I thought the resulting hash_col column would have the same values as the values from the former execution but it was not the case.
Is it possible for ORACLE STANDARD_HASH function to deliver over time the same result for identical input data ? It does if the function is called twice the same day.
standard_hashwithout amethodparameter computes a SHA1 hash not an MD5 hash. If you pass the same parameters in, you'll get the same result out. That's a pretty basic property of a hash. I would wager that either you didn't execute the same query-- perhaps previously you actually computed the MD5 hash-- or the data has actually changed in some way.