url_decode
Descriptionβ
Translates a string back from the application/x-www-form-urlencoded format. This function is an inverse of url_encode.
This functions is supported from v3.2.
Syntaxβ
VARCHAR url_decode(VARCHAR str)
Parametersβ
str
: the string to decode. Ifstr
is not a string, the system will try implicit cast first.
Return valueβ
Returns a decoded string.
Examplesβ
mysql> select url_decode('https%3A%2F%2Fdocs.starrocks.io%2Fdocs%2Fintroduction%2FStarRocks_intro%2F');
+------------------------------------------------------------------------------------------+
| url_decode('https%3A%2F%2Fdocs.starrocks.io%2Fdocs%2Fintroduction%2FStarRocks_intro%2F') |
+------------------------------------------------------------------------------------------+
| https://docs.starrocks.io/docs/introduction/StarRocks_intro/ |
+------------------------------------------------------------------------------------------+