Hoi,
Kan iemand mij in goed nederlands uitleggen wat een varbinary variabele is?
Alvast bedankt,
Jopla
1.475 views
Ben van Velzen op 01/03/2016 21:22:21
Dat is er niet, inet6_aton levert een int op, dus daar gebruik je dan een int voor.
INET6_ATON(expr)
Given an IPv6 or IPv4 network address as a string, returns a binary string that represents the numeric value of the address in network byte order (big endian). Because numeric-format IPv6 addresses require more bytes than the largest integer type, the representation returned by this function has the VARBINARY data type: VARBINARY(16) for IPv6 addresses and VARBINARY(4) for IPv4 addresses.