INET_ATON

Given the dotted-quad representation of an IPv4 network address as a string, returns an integer that represents the numeric value of the address in network byte order. INET_ATON() returns NULL if it does not understand its argument.

Syntax

INET_ATON(expr)

Example

SELECT INET_ATON('12.0.6.9')

The above example returns 201328137.