대부분의 IP 데이터베이스는 "시작 IP 범위" 및 "끝 IP 범위"에 대한 열을 포함합니다. 이러한 열의 값은 대개 8자리 정수입니다. 데이터에 마침표로 구분된 9자리 숫자 문자열로 된 IP 주소가 있을 가능성이 큽니다. 1.23.456.789를 예로 들 수 있습니다. IP 주소의 위치를 확인하려면 IP 주소를 정수로 변환하고 해당 주소가 존재하는 IP 범위를 확인해야 합니다.
먼저 IP 주소 데이터와 IP 주소 데이터베이스 사이에 두 개의 조인을 만들어야 합니다.(INT(
LEFT([IP Address],(FIND([IP Address], ".")))
))*16777216+
(INT(
LEFT(
MID([IP Address],
FIND([IP Address],".")+1),
FIND(MID([IP Address],FIND([IP Address],".")+1),".")-1)
))*65536+
(INT(
MID([IP Address],
FIND([IP Address], ".", FIND([IP Address], ".") +1)+1,
(FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)) - (FIND([IP Address], ".", FIND([IP Address], ".") +1))-1
)
))*256+
(INT(
RIGHT([IP Address],
LEN([IP Address]) -
FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)
)(INT(
LEFT([IP Address],(FIND([IP Address], ".")))
))*16777216+
(INT(
LEFT(
MID([IP Address],
FIND([IP Address],".")+1),
FIND(MID([IP Address],FIND([IP Address],".")+1),".")-1)
))*65536+
(INT(
MID([IP Address],
FIND([IP Address], ".", FIND([IP Address], ".") +1)+1,
(FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)) - (FIND([IP Address], ".", FIND([IP Address], ".") +1))-1
)
))*256+
(INT(
RIGHT([IP Address],
LEN([IP Address]) -
FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)
)
))001458025
60 KB
40 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.