日期:2014-05-18  浏览次数:20613 次

Sql 2005 查询问题 In 查询 麻烦大家看一看
orcal   中   能   这么查询  
select   *   from   V_L_OFeeInfo   where  
(n_OFeeID,n_PatentID)   in   ((2,0),(3,1))

不知道   sql   2005   能不能中么查   或者   能类似的   查  
请   帮给忙     谢谢

------解决方案--------------------
orcal很少用,能否解釋一下其意思

SQL2005中:

select * from V_L_OFeeInfo where
n_OFeeID in (2,0) and n_PatentID in (3,1))
------解决方案--------------------
意思是:
select * from V_L_OFeeInfo where
(n_OFeeID = 2 and n_PatentID = 0) or (n_OFeeID = 3 and n_PatentID = 1)