Sql 2005查询问题In 查询 麻烦大家看一看orcal中能这么查询select*fromV_L_OFeeInfowhere(n_OFeeID,n_Pate
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)
