sqlanywhere - How to calculate the hash of a row in SQL Anywhere 11 database table? -
my application continuously polling database. optimization purpose, want application query database if tables have been modified. want calculate hash of entire table , compare last-saved-hash of table. (i plan compute hash first calculating hash of each row , followed hash i.e. hash of hashes)
i found there checksum() sql utility function sql server computes hash/checksum 1 row.
is there similar utility/query find hash of row in sql anywhere 11 database?
fyi, database table does not have coloumn precomputed hash/checksum.
got answer. can compute hash on particular column of table using below query:
-- select hash(coulum_name, hash_algorithm) -- example: select hash(coulmn, 'md5') mytable
Comments
Post a Comment