TRY_INET_NTOA
Learn how to use the TRY_INET_NTOA IP address function in PlaidCloud Lakehouse. Takes an IPv4 address in network byte order and then returns the address as...
Takes an IPv4 address in network byte order and then returns the address as a dotted-quad string representation.
Analyze Syntax
func.try_inet_ntoa(<integer>)
Analyze Examples
func.try_inet_ntoaA(167773449)
┌───────────────────────────────┐
│ func.try_inet_ntoa(167773449) │
├───────────────────────────────┤
│ 10.0.5.9 │
└───────────────────────────────┘
SQL Syntax
TRY_INET_NTOA( <integer> )
Aliases
Return Type
String.
SQL Examples
SELECT TRY_INET_NTOA(167773449), TRY_IPV4_NUM_TO_STRING(167773449);
┌──────────────────────────────────────────────────────────────┐
│ try_inet_ntoa(167773449) │ try_ipv4_num_to_string(167773449) │
├──────────────────────────┼───────────────────────────────────┤
│ 10.0.5.9 │ 10.0.5.9 │
└──────────────────────────────────────────────────────────────┘