将散列数据插入字段 [英] insert hashed data into field
本文介绍了将散列数据插入字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
如果使用的是SQL Server 2005及更高版本,则可以使用内置的HashBytes
函数.
SELECT HashBytes(' sha1',' 你好') 选择 HashBytes(' md5',' 你好')
hi i want to insert some data into sql''s fields but i want to first hash them next insert them to fields,what can i do ??
解决方案
If you are using SQL Server 2005 and above, you can use the built-inHashBytes
function.
SELECT HashBytes( 'sha1', 'Hello' ) SELECT HashBytes( 'md5', 'Hello' )
这篇关于将散列数据插入字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文