I have the below SQL query:
SELECT
ORDER_ID,
ORDER_CODE
FROM
ORDERS
WHERE
(ORDER_ID,SEQUENCE) in ((?,?))
PreparedStatement statement = connection.prepareStatement(sql)
The above line of code produces a PreparedStatement
object successfully in Oracle with the above query but in Apache Derby, it is throwing the following exception:
java.sql.SQLSyntaxErrorException: Syntax error: Encountered "," at line 8, column 14.
Could someone please explain how to query multiple columns in IN clause in DERBY.
Reference post:
http://apache-database.10148.n7.nabble.com/Using-IN-clause-with-multiple-columns-td98558.html
Thank you!