当然有问题了,not in 后面,不能用select *,要用select 接收号码,另外看不明白你要要求

解决方案 »

  1.   

    select count(DISTINCT col004) from tab where 接收号码 like '小灵通号码%' and 发送号码 not in (select  col004 from tab where 接收号码 like '手机号码%')
      

  2.   

    select count(*) from 
    (select * from tab  where 为发送号码 like '小灵通号码%' and 为接收号码 like '小灵通号码%')
    A
      

  3.   

    有问题,除了select * from tab where 接收号码 like '手机号码%'中不能用*而需要用 select 接收号码外,还有前面的and 发送号码也不明确