How to obtain the IP address CIDR block in MySQL _ MySQL

Source: Internet
Author: User
How to obtain the IP address segment bitsCN.com in MySQL


Effect display:

The following command can be used to quickly obtain the IP address CIDR block.


Command explanation:

Inet_aton ('192. 207.224.1 ') is used to convert an IP address to a sequence.

Convert defines the sequence type as an integer.

& 0xFFFFFF00 indicates to perform and operate on the hexadecimal number of FFFF00. this operation is equivalent to a mask and can be used as a filter segment.

The inet_ntoa function converts sorted sequences into IP addresses.

BitsCN.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.