TO_IPADDRESS
functionsupportedCore SQL functionsConverts the input expression to an IPADDRESS value. See also: - TRY_TO_IPADDRESS
Syntax
TO_IPADDRESS( <string_expr> )
Parameters
| Name | Required | Description |
|---|---|---|
string_expr | required | A 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
- For the accepted input formats and the canonical output form, see Accepted input and canonical output.