Scalar function
NULL url/part returns NULL. An explicitly supplied NULL key returns NULL even for a part other than QUERY. Missing components or keys return NULL.
Syntax
Scalar
Arguments
Returns
- Type: STRING
- Possible values: The requested component text, or NULL when absent or the part selector is unsupported.
- NULL behavior: NULL url/part returns NULL. An explicitly supplied NULL key returns NULL even for a part other than QUERY. Missing components or keys return NULL.
Properties
Usage notes
- Query extraction splits raw key=value pairs on & and returns the first matching key. It does not percent-decode values or convert plus to space; a key-only item without = does not match.
- A URL without an explicit scheme is parsed as a relative URI: PATH/QUERY/REF/FILE can exist, while HOST/PROTOCOL/AUTHORITY/USERINFO return NULL. An absolute URL with no explicit slash has an empty PATH rather than /.
Examples
Example values
Read a path and a missing query key
Limitations
- Malformed absolute URLs can raise a parsing error. Unsupported part names return NULL. URLs are normalized during parsing; raw query and path components keep percent-encoded characters.
Last modified on October 15, 2026