Oracle MD5函数语句
Oracle MD5函数语句Sql代码CREATE OR REPLACE FUNCTION md5hash (str IN VARCHAR2)RETURN VARCHAR2IS v_checksum VARCHAR2(32);BEGINv_checksum := LOWER( RAWTOHEX( UTL_RAW.CAST_TO_RAW( sys.dbms_obfuscation_toolkit.md5(input_string => str) ) ) );RETURN v_checksum;EXCEPTIONWHEN NO_DATA_FOUND THENNULL;WHEN OTHERS THEN-- Consider logging the error and then re-raiseRAISE;END md5hash;/