如何用SQL查询数据 SELECT * FROM tablenameWHERE (颜色='PB' AND PB='T')OR (颜色='CS' AND CS='T')OR (颜色='AB' AND AB='T') 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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' 凑热闹:(select * from tablenamewhere case when 颜色='pb' then pbwhen 颜色='cs' then cswhen 颜色='ab' then abend ='T'不过语法可能有点问题,没试过 试过,newly_ignorant(不学无术) 方法可以!! 求一SQL语句? 请教一条sql语句 sql小问题,求大哥们帮忙 这个存储过程为什么会出错了? 从服务器接受结果时发生传输级错误provider:TCP提供程序,error:0指定网络名不可用 150分~~做报表输出时遇到困难,求sql语句 求!!!!!!!!!!1储存过程 请教一个SQL问题,请进来看看 急 请问如何让SQL2000自动定时进行一个操作 日期问题 高分请教:vc如何直连SQLSERVER,注:不通过ODBC.
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'
where case when 颜色='pb' then pb
when 颜色='cs' then cs
when 颜色='ab' then ab
end ='T'不过语法可能有点问题,没试过