INET_ATON()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns a numeric form of the IPv4 address in string form.
USAGE
INET_ATON(string)
Argument Name | Description |
---|---|
| The IPv4 address string |
DETAILS
INET_ATON()
is a network function that returns an integer representation of the IPv4 address provided in dotted-quad format.
A NULL
is returned if the argument is NULL
.
EXAMPLES
SELECT INET_ATON('10.10.10.1');
+-------------------------+
| INET_ATON('10.10.10.1') |
+-------------------------+
| 168430081 |
+-------------------------+