Converts an IPv4 address string to an unsigned integer. Useful for efficient storage and range-based IP queries.
BIGINT UNSIGNEDDiperbarui: 13 Jun 2026INET_ATON(ip_string)An IPv4 address in dotted-decimal notation
1 SELECT INET_ATON('192.168.1.100') AS ip_int;
Convert an IP address to its integer representation.
1 INSERT INTO ip_logs (ip_address, access_time) 2 VALUES (INET_ATON('10.0.0.1'), NOW());
Store an IP address as an integer for space-efficient logging.
1 SELECT * FROM access_logs 2 WHERE ip_address BETWEEN 3 INET_ATON('192.168.1.0') AND 4 INET_ATON('192.168.1.255');
Query all records within a specific IP subnet range.
Sudah paham INET_ATON? Latih langsung di browser
Latihan interaktif, langsung di browser.