如题…………………………………………………………………………
  应该用结果集的那种方法来获得bigint型?rs.getObject();么?

解决方案 »

  1.   

    Object   getObject(int   columnIndex)     
                          Gets   the   value   of   the   designated   column   in   the   current   row   of   this   ResultSet   object   as   an   Object   in   the   Java   programming   language.     
        Object   getObject(int   i,   Map   map)     
                          Returns   the   value   of   the   designated   column   in   the   current   row   of   this   ResultSet   object   as   an   Object   in   the   Java   programming   language.     
        Object   getObject(String   columnName)     
                          Gets   the   value   of   the   designated   column   in   the   current   row   of   this   ResultSet   object   as   an   Object   in   the   Java   programming   language.     
        Object   getObject(String   colName,   Map   map)     
                          Returns   the   value   of   the   designated   column   in   the   current   row   of   this   ResultSet   object   as   an   Object   in   the   Java   programming   language.  
      

  2.   

    直接用getString就可以,几乎所有的类型都可以用getString取出来,前提是在这个类型上有toString方法