【问题标题】:Get hashcode by calling Oracle MD5 hash function?通过调用 Oracle MD5 哈希函数获取哈希码?
【发布时间】:2014-03-20 06:46:29
【问题描述】:

我正在使用 Oracle 11g。它有一个架构,并且该架构有 DETAILS 表。

DETAILS table has 10 columns.

但我的要求是我想通过调用 Oracle MD5 哈希函数来获得基于 3 列值的哈希码。

有可能吗?

谢谢!

【问题讨论】:

标签: sql oracle plsql oracle11g


【解决方案1】:

如果尚未完成,您需要:将 dbms_crypto 上的执行权限授予

SYS.dbms_crypto.hash(SYS.utl_raw.cast_to_raw( column1 || column2 || column3  ), <hashtype>)
--Where hashtype is integer:
-- 1 = MD4
-- 2 = MD5
-- 3 = SHA1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-17
    • 2012-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-08
    • 2014-05-30
    相关资源
    最近更新 更多