【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
String update1 = "update aa set col= '3' where col2= '3'"; DataSource ds = (DataSource) beanFactory.getBean("xxx"); conn = ds.getConnection(); statement = conn.createStatement(); PreparedStatement prepareStatement= conn.prepareStatement(update1); int i = statement.executeUpdate(update1); int i2 = prepareStatement.executeUpdate();
现在我有疑问?为什么 prepareStatement 的运行结果是0 而statement的运行结果是1?
请问 哪位大侠知道sybase为什么会出现这个问题?