解决方案 »

  1.   

    1、属于相关子查询,重复执行以下查询
    select stuID from clubs where clubName='足球'
    ->
    select stuName from students where stuID=clubs.stuID
    2、
    想从表students查找其在表clubs中clubName='足球'的stuName
    3、
    该查询属标题子查询,相较之前的方式效率普遍要高
      

  2.   

    你在SQL中查看一下执行计划就知道了对于这种SQL我只想说你为嘛不能left join呢?