Giter Site home page Giter Site logo

phone_location's Introduction

phone_location.sql

手机号码归属地数据库,2024年02月 504596条数据 手机归属地查询,运营商,邮编,区号。

手机号可以携号转网归属运营商不一定准确

首先普及一下11位手机号的构成规则

前3位———网络识别号;

判断移动,联通,电信 select isp from phone_location where pref='130';

第4-7位———地区编码;

所以把你的号码前7位放到度娘搜索就知道哪个城市

数据库收录未知的号码,通过第三方网站补充完善手机号码归属地数据库

未知号码列表sql:select count(1) from phone_location where isp is null

数据库收录未知的号码:

1)通过第三方网站补充完善手机号码归属地数据库

2)第三方接口查询

https://www.qqzeng.com/phone/

how 2 use:

select * from phone_location where phone like "1337785%" limit 1;

#region.sql 行政区划数据库_with+经纬度-省市区-邮编-区号-拼音-简称 3750条数据

select city_code select * from region where LENGTH(city_code)>2 and level>1

报警电话110 电信

电信客服 10000

联通客服 10010

移动 10086

#数据修复

SELECT count(DISTINCT city_code) aa, city from phone_location GROUP BY city HAVING aa>1

update phone_location set pref=left(phone,3) where pref is null;

SELECT CONCAT("update phone_location set post_code='",post_code,"', province='",province,"', city='",city,"', area_code='",area_code,"' where city_code='",city_code,"' and area_code is null;") from phone_location where city_code in( SELECT DISTINCT city_code from phone_location where area_code is null ) and area_code is not null GROUP BY city_code

SELECT concat("update phone_location set isp='",isp,"',isp_type=",isp_type," where pref='",pref,"' and isp is null;") aaa from phone_location where isp is not null and pref in (SELECT DISTINCT pref from phone_location where isp is null) GROUP BY isp,pref

phone_location's People

Contributors

dannyhu926 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.