Files
doris/docs/en/docs/sql-manual/sql-functions/string-functions/parse_url.md
yagagagaga 2bb025a474 [typo](docs) fix some error in this files (#18259)
* [typo](docs) fix some error in this files

* [typo](docs) fix some error in this files

* update files
2023-04-07 18:01:07 +08:00

1.6 KiB

title, language
title language
parse_url en

parse_url

description

Syntax

VARCHAR parse_url(VARCHAR url, VARCHAR name)

From the URL, the field corresponding to name is resolved. The name options are as follows: 'PROTOCOL', 'HOST', 'PATH', 'REF', 'AUTHORITY', 'FILE', 'USERINFO', 'PORT', 'QUERY', and the result is returned.

example

mysql> SELECT parse_url ('https://doris.apache.org/', 'HOST');
+------------------------------------------------+
| parse_url('https://doris.apache.org/', 'HOST') |
+------------------------------------------------+
| doris.apache.org                               |
+------------------------------------------------+

If you want to get parameter in QUERY, you can use extract_url_parameter.

keywords

PARSE URL