you try change  "java.sql.SQLException error1" to" Exception e"

解决方案 »

  1.   

    you can try ...} catch (Trowable t) {
        System.err.println(t);
    }
      

  2.   

    不好意思,上面应该是Throwable, 打错了:-)
      

  3.   

    conn.createStatement().executeUpdate("insert into user_info(字段名,字段名,字段名,字段名,字段名,字段名,字段名) values('fdsf','fdsf','fdsf','fdsf','fdsf','fdsf','66')");
    这样试试
      

  4.   

    在conn.close();前加一句:conn.commit();
      

  5.   

    如果你的SQL语句能单独执行的话,就象楼上说的,可能没有设置自动提交.