Is there an equivalent SQL IN clause in XQuery?

Is there something like a SQL IN clause in XQuery? For example, I want to do something like this:

 where $x/lotClosedYn in ('Y','N') 

using the IN keyword gives an error, I use saxon to handle XQuery.

+6
source share
1 answer

Use = . It works on a set basis, therefore ("Y", "A", "B", "C") = ("Y") returns true.

+12
source

Source: https://habr.com/ru/post/900065/


All Articles