mssql2008r2 内置md5函数 :
HashBytes('MD5','123456') 得到结果 0xE10ADC3949BA59ABBE56E057F20F883E
如果要获取32位MD5,使用substring函数, SUBSTRING(HASHBYTES('md5','123456'),2,32)
select substring(sys.fn_sqlvarbasetostr(HashBytes('MD5','82161')),3,32)
Copyright @ 2024 达者均为师 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster