INET data type stores an IPv4 or IPv6 address.
Syntax
A constant value of typeINET can be expressed using an
interpreted literal, or a
string literal
annotated with
type INET or
coerced to type
INET.
INET constants can be expressed using the following formats:
IPv4 addresses will sort before IPv6 addresses, including IPv4-mapped IPv6 addresses.
Size
AnINET value is 32 bits for IPv4 or 128 bits for IPv6.
Example
Supported casting and conversion
INET values can be cast to the following data type:
STRING- Converts to format'Address/subnet'.

