Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将此函数的输出从 varbinary() 转换为 aa varchar() 的最有效方法是什么?
这个怎么样:
master.sys.fn_varbintohexstr(@binvalue)
对于 SQL Server 2008 使用
CONVERT(varchar, @binary, 1)
1 - 样式 0x060D,2 - 060D
http://msdn.microsoft.com/en-gb/library/ms187928.aspx
转换(varchar,@binary)