标签: sql apache derby where-in javadb
此sql语句按预期执行
select * from table where id in(1,2,3);
但是IN()子句有可能像下面这样为空
select * from table where id in();
Apache Derby抱怨 syntax error : encountered ")" at line n
syntax error : encountered ")" at line n
MySQL知道如何处理这种情况,并且不会返回任何值,当涉及到这样的空列表时,我如何使apache derby的行为与mysql相同?