Reputation: 1035
Is there anything like the SQL IN
clause in XQuery? E.g., I want to do something like this:
where $x/lotClosedYn in ('Y','N')
using IN
keyword is giving an error, I am using saxon for XQuery processing.
Upvotes: 7
Views: 4103
Reputation: 38732
Use =
. It works set-based, so ("Y", "A", "B", "C") = ("Y")
returns true.
Upvotes: 13