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.
如何比较这样的东西AAAAAA1iUFw=:(从字节数组转换的 Base64String)和这样的东西0x000000000BFF1E5A(T-SQL)?
AAAAAA1iUFw=
0x000000000BFF1E5A
我想通过这个 base64String 找到 tablerow,例如:
select * from table1 where timestampCol = 'AAAAAA1iUFw='
将值转换为 varbinay 将有助于:
-- Convert Base64 value to varbinary select cast ('AAAAAA1iUFw=' as varbinary(20))