解决方案 »

  1.   

    应用必须改语句,而且这样加起来的字符串不能保证数据唯一性,改用not exists来判断
      

  2.   


    请问如果改语句的话,要如何修改,not exists提升很有限啊。
      

  3.   

    从代码来看,not in/not exists恐怕不是root cause,而是convert的拼接和转换,如果你的查询总是char(15),可以考虑用计算列预存convert之后的值,然后not exists
      

  4.   

    可以把语句改成 LEFT JOIN ,在where做为空的筛选。例如select  v1.*   from table v1left join icclientver v2 on  v1.finterid =  v2.finterid  and  v1.fentryid = v2.fentryid
    where v2.finterid   is null 
      

  5.   

    顶楼上的,not in这种查询方式都可以用left join替代,然后再过滤
      

  6.   

    ...  from v1 where  not exists 
    (select 1 from icclientver b where v1.finterid =b.finterid  and v1.fentryid=b.fentryid )