跳到主要内容
未列出页
此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。
版本:3.2

url_extract_host

Description

Extracts the host section from a URL.

Syntax

VARCHAR url_extract_host(VARCHAR str)

Parameters

  • str: the string to extract its host string. If str is not a string, this function will try implicit cast first.

Return value

Returns the host string.

Examples

mysql> select url_extract_host('httpa://starrocks.com/test/api/v1');
+-------------------------------------------------------+
| url_extract_host('httpa://starrocks.com/test/api/v1') |
+-------------------------------------------------------+
| starrocks.com |
+-------------------------------------------------------+