------解决方案-------------------- 那你直接用第二句就行了,
select msisdn,imsi from nx_bs_code where imsi in ( select imsi from NX_SUBSCRIBERS where hlr_id= 0 and MISC_SERV_SEND_A_NOTIF_CD=0) ------解决方案--------------------
我X,看出啥意思了,直接用下面的sql吧:
select t1.imsi, t2.msisdn
from NX_SUBSCRIBERS t1
left join nx_bs_code t2
on t1.imsi = t2.imsi
where hlr_id = 0
and MISC_SERV_SEND_A_NOTIF_CD = 0