我们有一个MySQL数据库,并且我们正在从DB切换到SQLAlchemy。根据文档,ResultProxy.rowcount应该通过UPDATE语句报告受影响的行数。如果我使用SQLAlchemy执行此查询:SET field =如果有匹配的行,但对于任何"field“值(即使大于或等于10),它将返回行数1。当我使用DB API执行这个查询时,它返回了正确的<em
String sql = "update t_test set createDate = now() where id = 1; update t_test set createDate =now() where id = 101;";
String url = "jdbc:mysql://localhost:3306/test?在上面的sql中,更新了两行,但preparedStatement.getUpdateCount()返回1。MySQL<