base64로 인코딩된 데이터를 디코딩하려면

다음 두 함수가 필요하다.


Binary Functions

from_base64(string) → varbinary

Decodes binary data from the base64 encoded string.


String Functions

to_utf8(string) → varbinary

Encodes string into a UTF-8 varbinary representation.



두 함수의 조합으로 다음과 같이 쿼리를 하면 base64 디코딩한 문자열을 얻을 수 있다.


SELECT from_utf8( from_base64 ( my_column ) )

FROM myTable


'Presto' 카테고리의 다른 글

[Presto] 사용팁 정리  (0) 2016.10.27
Presto에서 JSON 다루기  (0) 2016.08.12

+ Recent posts