Skip to main content
VeloDB Cloud 26.x is based on Doris 4.x. Versions in this section refer to Doris versions. See Version Mapping.

URL_ENCODE

Description​

Use UTF-8 encoding to complete the URL encoding of the provided text. Typically used to encode parameter information passed as part of a URL

Syntax​

URL_ENCODE( <str> )

Required Parameters​

ParametersDescription
<str>String to be encoded

Return Value​

UTF-8 encoding completes the URL encoding of the provided text

Example​

select URL_ENCODE('Doris Q&A');
+-------------------------+
| url_encode('Doris Q&A') |
+-------------------------+
| Doris+Q%26A |
+-------------------------+