Extract the domain name from the string URL
DOMAIN ( <url> )
| Parameter | Description |
|---|---|
<url> | URL from which the domain name needs to be extracted |
Domain name of parameter <url>
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 | +-----------------------------------------------------------------------------+