1

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

4

1 回答 1

5

根据您想要哈希的目的,您可以使用 ORA_HASH:

SELECT ORA_HASH(name || '~' || surname || '~' || position) FROM emp;

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

或者您可以使用 DBMS_CRYPTO.hash:

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

于 2013-10-08T02:14:15.530 回答