那请问为什么pl/sql显示用!=要快些呢?

解决方案 »

  1.   

    再加一个比较
    select * from t_pub_colorring_song t where t.words_count in(1,2,3,4,5,6,7)
    select * from t_pub_colorring_song t where t.words_count!=8
    select * from t_pub_colorring_song t where not t.words_count=8
    请比较一下这三个
    谢谢
      

  2.   

    据我知道的,在Orcale中'='为精确匹配,也就是Orcale在查询特定记录中其会根据索引或主建所建的簇用二叉树的方法来查寻你所制定的特定记录。也就是说,你给的条件越精确用=就越快,其次是!=,<>,和in