我正在创建一个巨大的SQL查询: Select * from (With tab1 AS ( Select * from abc),tab3LEFT OUTER JOIN tabz on tab1.a = tabz.a) A 现在使用上面的as 1表,我需要创建另一个长SQL来计算百分比和其他表中的其他内容。这是一个巨大的查询,我知道我们不能嵌套WITH语句。有没有人有什么简单的方法来完成这个任务?或者有什么建议?我只需要使用oracleSQL
String sql = "update t_test set createDate = now() where id = 1; update t_test set createDate =connection.setAutoCommit(false);
final PreparedStatement preparedStatement = connection.prepareStatement(sql在上面的sql中,更新了两行,但preparedStatement.getUpdateCount()返回1。