hash - How to generate hashkey using multiple columns in oracle? Could you please give me an example? -


how generate hash key using multiple columns in oracle? please give me example?

depending on want hash for, might use ora_hash:

select ora_hash(name || '~' || surname || '~' || position) emp; 

http://docs.oracle.com/cd/b12037_01/server.101/b10759/functions097.htm

or might use dbms_crypto.hash:

http://docs.oracle.com/cd/e11882_01/appdev.112/e40758/d_crypto.htm#i1002022


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -