select smallImage from tuan where id in((select fid from commend where smallTu not like '%57tuan%')or(select sid from commend where smallTu not like '%57tuan%'))

解决方案 »

  1.   

    select
     smallImage 
    from
     tuan 
    where
     id in (select fid from commend where smallTu not like '%57tuan%')
    or
     id in (select sid from commend where smallTu not like '%57tuan%')
      

  2.   

    select smallImage from tuan where id in(select fid from commend where smallTu not like '%57tuan%' or smallTu not like '%57tuan%')--应该是and吧?
    select smallImage from tuan where id in(select fid from commend where smallTu not like '%57tuan%' and smallTu not like '%57tuan%')
      

  3.   

    可我那个是两个select语句啊~