想问下关于sun.jdbc.rowset.CachedRowSet() 的问题,
<%
try {
java.sql.Connection conn = null;
java.sql.PreparedStatement pstmt = null;
sun.jdbc.rowset.CachedRowSet crs = null;
conn = com.gdcn.database.ConnectionManager.getConnection();
pstmt = conn.prepareStatement("select created_time from tableA");
crs = new sun.jdbc.rowset.CachedRowSet();
crs.populate(pstmt.executeQuery());
while(rs.next()){
String a =rs.getString("created_time");
out.print(" a "+a+"<br>");
}
}catch(Exception ex){
ex.printStackTrace();
}
%>
这里取到的数据本应该为年月日以及时分秒的,但在这里就只能取到年月日,其他的数据库没有这个问题,就一个项目出现这个问题,怀疑是ORACLE配置的问题,大家有遇到过没有