exists  什么意思怎么用啊。。怎么没见过。

解决方案 »

  1.   

    和in类似 
    具体用法可以google下
      

  2.   

    exists 是Oracle sql中的一个函数。表示是否存在符合某种条件的记录。如select * from A,B
    where A.id=B.id
    and exists (SELECT * 
      FROM A
      WHERE A.type LIKE 'S%')它和Oracle的另外一个函数IN很相似
      

  3.   

    exists是存在的意思,和in差不多,他们区别就是exists的条件语句是先执行主查询,再查子查询。而in则相反,在大数据量查询时exists会比in效率高
      

  4.   

    单用exists, 跟 in 是差不多的效果。个人觉得,如果 in 后面是个子查询,最好连exists都不用,直接在主查询里内连接。最重要的是用在 not exists ,比 not in 效率高多了。
      

  5.   

    exists 和 not exists 都比较高效一般开发中都用exists 代替 in,用not exists 代替 not in
      

  6.   

    存在的意思!sql提供in和exist,能用exist时不要用in!