temp=30005;
up.executeUpdate("update judge set num=1 where id=temp");
我使用上面的语句,在Resin中能编译通过,但数据库不能更新。
我把以上语句改为:up.executeUpdate("update judge set num=1 where id=30005");
数据库judge中id=30005的记录能够更新,我该如何解决该问题?
...全文
852打赏收藏
请问如何在jsp中使用JDBC动态更新数据库?
temp=30005; up.executeUpdate("update judge set num=1 where id=temp"); 我使用上面的语句,在Resin中能编译通过,但数据库不能更新。 我把以上语句改为:up.executeUpdate("update judge set num=1 where id=30005"); 数据库judge中id=30005的记录能够更新,我该如何解决该问题?