Is there a \"semi-portable\" way to get the md5() or the sha1() of an entire row? (Or better, of an entire group of rows ordered by all their fields, i.e. order by 1,2,3,
order by 1,2,3,
In MSSQL -- You can use HashBytes across the entire row by using xml..
SELECT MBT.id, hashbytes('MD5', (SELECT MBT.* FROM ( VALUES(NULL))foo(bar) FOR xml auto)) AS [Hash] FROM AS MBT; You need the from (values(null))foo(bar) clause to use xml auto, it serves no other purpose.. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You need the from (values(null))foo(bar) clause to use xml auto, it serves no other purpose..
from (values(null))foo(bar)