如何知道前三位后四位归属地快速检索查询客户信息补全号,匹配中间四位,数据库存储过程代码实战

知道手机归属地和手机号的前三位后四位或者前三位后五位,如何查全号?

那么用到了SQL的数据库的查询语句来完成select * from Table where q3 like '%%' and city like '%%'

说一下我的思路分析:

中国手机号分为中国移动、中国电信、中国联通; 现在也有些是虚拟运营商(腾讯、阿里、京东还有其他)

总共四部分组成 其中虚拟运营商腾讯大王

使用存储过程示例代码:

declare @No1 varchar(20)---
declare @NO2 varchar(20)---
select @No1=CardID from CardInfo where customerID in (select customerID from userInfo where customerName='李四')  
select @No2=CardID from CardInfo where customerID in (select customerID from userInfo where customerName='张三')
exec proc_transfer @No1,@No2,'2000'

那么用到了SQL的数据库的查询语句来完成  

select  * from Table where  q3 like '%%' and city like '%%'

可以用C++做个小程序测试是OK的

需要Demo程序或有问题可以在评论区留言或私信,定期抽空解答

Demo下载:https://share.weiyun.com/X6G9ZD2Q

你可能感兴趣的:(归属地查询小程序)