This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

INET_ATON

Sintassi

INET_ATON(espr)

Spiegazione

Data una rappresentazione stringa a ottetti puntati di un indirizzo di rete, restituisce un intero che rappresenta il valore numerico dell'indirizzo. Gli indirizzi possono essere a 4 o 8 byte.

Esempi

MariaDB [test]> SELECT INET_ATON('192.168.1.1');
+--------------------------+
| INET_ATON('192.168.1.1') |
+--------------------------+
|               3232235777 |
+--------------------------+
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.