I'd like to write a T-SQL query where I encode a string as a Base64 string. Surprisingly, I can't find any native T-SQL functions for doing Base64 encoding. Does a native function exist? If not, what's the best way to do Base64 encoding in T-SQL?
相关问题
- Views base64 encoded blob in HTML with PHP
- Bulk update SQL Server C#
- POST Base64 encoded data in PHP
- SQL to Parse a Key-Value String
- ruby 1.9 wrong file encoding on windows
相关文章
- How to truncate seconds in TSQL?
- How to create base64Binary data?
- SQL identity (1,1) starting at 0
- Convert column to string in SQL Select
- SQL Group by Count of Counts
- How to generate sequential row number in tsql?
- Base64 Encoding: Illegal base64 character 3c
- Sql insert if row does not exist
This is usefull for encode and decode.
By Bharat J
I loved @Slai's answer. I only had to make very minor modifications into the one-liners I was looking for. I thought I'd share what I ended up with in case it helps anyone else stumbling onto this page like I did: