假如你手里的一万个号都在表A里 那10万个号在表B里
select [B表地址字段] from [B] where [B表手机号字段] in (select [A表手机号字段] from [A])
这样就能搜索出来了
t1(手机号码,所在城市)
t2(手机号码)
select t1.手机号码,所在城市
from t1 where t1.手机号码 in (select t2.手机号码 from t2)
t1(手机号码,所在城市)
t2(手机号码)
select t2.手机号码,所在城市
from t1,t2
where t1.手机号码=t2.手机号码
select [1万号码].手机号码,[10万号码].所在城市 from [1万号码] left join [10万号码] on [1万号码].手机号码=[10万号码].手机号码
select * from [表名] where [城市字段]='北京'