SELECT * 
FROM tablename
WHERE (颜色='PB' AND PB='T')
OR  (颜色='CS' AND CS='T')
OR  (颜色='AB' AND AB='T')

解决方案 »

  1.   


    select * from T where 颜色='PB' and pb='T' 
    union all 
    select * from T where 颜色='CS' and CS='T'
    union all  
    select * from T where 颜色='AB' and AB='T'
      

  2.   

    凑热闹:(select * from tablename
    where case when 颜色='pb' then pb
    when 颜色='cs' then cs
    when 颜色='ab' then ab
    end ='T'不过语法可能有点问题,没试过
      

  3.   

    试过,newly_ignorant(不学无术) 方法可以!!