try{}
catch(SQLException e){
  System.out.println(e);
}

解决方案 »

  1.   

    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    exception.printStackTrace(pw);
    System.out.println(sw.toString());or 
    exception.printStackTrace(pw);
      

  2.   

    AYellow(北斗猪)
    应该是
    try{}
    catch(SQLException e){
      System.out.println(e.toString());
    }
      

  3.   

    很多JDBC不支持last()
    解决:next();next();next();..............................)-)
      

  4.   

    jdbc2.0只是一个规范的接口集,如果具体的jdbc驱动不实现的话就没办法。