jdbc中的executeQuery()可以运行嵌套查询吗?
Statement stmt = conn.createStatement();ResultSet rs = stmt.executeQuery(sql);
sql就像:
SELECT * FROM x WHERE
result IN (SELECT result FROM y WHERE cause = 'xyz')
抛出异常
进行空检查
SELECT * FROM x WHERE
result IN (SELECT result FROM y WHERE cause = 'xyz' and result is not null)