How to compare something like this: AAAAAA1iUFw=
(a Base64String converted from a Byte Array) to something like this 0x000000000BFF1E5A
(T-SQL)?
I wanna find the tablerow by this base64String like:
select * from table1 where timestampCol = 'AAAAAA1iUFw='
Casting value to varbinay will help:
-- Convert Base64 value to varbinary
select cast ('AAAAAA1iUFw=' as varbinary(20))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.