Files
doris/docs/en/docs/sql-manual/sql-functions/string-functions/from-base64.md
2024-02-18 14:45:25 +08:00

1.4 KiB

title, language
title language
FROM_BASE64 en

from_base64

description

Syntax

VARCHAR from_base64(VARCHAR str)

Returns the result of Base64 decoding the input string, NULL is returned when the input string is incorrect (with non-Base64 encoded characters).

example

mysql> select from_base64('MQ==');
+---------------------+
| from_base64('MQ==') |
+---------------------+
| 1                   |
+---------------------+

mysql> select from_base64('MjM0');
+---------------------+
| from_base64('MjM0') |
+---------------------+
| 234                 |
+---------------------+

keywords

from_base64