ORA-00920:关系运算符无效?

时间:2014-08-20 16:19:39

标签: sql oracle11g

sql抛出这个错误是什么意思?

select *
from deal.d
inner join product_request pr on pr.deal_id =d.deal_id
inner join party p on p.party_id =dp.party_id
where p.user_id='QABSMA11' and pr.Lien_Position_Num (2,3);

ORA-00920: invalid relational operator
00920. 00000 - "invalid relational operator"
*Cause: 
*Action:
Error at Line: 23 Column: 171

1 个答案:

答案 0 :(得分:2)

and pr.Lien_Position_Num (2,3)

应该是

and pr.Lien_Position_Num IN (2,3)

(以及dasblinkenlight写的内容:使用deal d代替deal.d