DOMAIN
Descriptionβ
Extract the domain name from the string URL
Syntaxβ
DOMAIN ( <url> )
Parametersβ
Parameter | Description |
---|---|
<url> | URL from which the domain name needs to be extracted |
Return valueβ
Domain name of parameter <url>
Exampleβ
SELECT DOMAIN("https://doris.apache.org/docs/gettingStarted/what-is-apache-doris")
+-----------------------------------------------------------------------------+
| domain('https://doris.apache.org/docs/gettingStarted/what-is-apache-doris') |
+-----------------------------------------------------------------------------+
| doris.apache.org |
+-----------------------------------------------------------------------------+