DOMAIN_WITHOUT_WWW
Descriptionβ
Extract the domain name without the prefix www in the string URL
Syntaxβ
DOMAIN_WITHOUT_WWW ( <url> )
Parametersβ
Parameter | Description |
---|---|
<url> | Need to extract the URL without the www domain name |
Return valueβ
Parameter <url>
Domain name without the prefix www
SELECT DOMAIN_WITHOUT_WWW("https://www.apache.org/docs/gettingStarted/what-is-apache-doris")
+---------------------------------------------------------------------------------------+
| domain_without_www('https://www.apache.org/docs/gettingStarted/what-is-apache-doris') |
+---------------------------------------------------------------------------------------+
| apache.org |
+---------------------------------------------------------------------------------------+