本帖最后由 a1181964764 于 2013-11-28 22:46:28 编辑

解决方案 »

  1.   

    DB.executeQuery(conn, "update category set isleaf = 1 where id =16");executeQuery 不应该是用来执行查询语句的么???
      

  2.   

    String sql = "insert into category values(null,?,?,?,?,?)";这里是否应该把具体字段写清楚,后面插入字段类型看是否一一对应。
      

  3.   

    解决了,改成pstmt.executeUpdate( "update category set isleaf = 1 where id =16");就可以了,谢谢大家!