TO_IPADDRESS

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conversion functionsIPADDRESS functions

Converts the input expression to an IPADDRESS value. See also: - TRY_TO_IPADDRESS

Syntax

TO_IPADDRESS( <string_expr> )

Parameters

NameRequiredDescription
string_exprrequiredA string expression that contains a valid IPv4 or IPv6 address.

Returns

The return type is IPADDRESS. For NULL input, the output is NULL. If the input isn’t a valid IP address, the function raises an error.

Usage notes