S
saisi
Unregistered / Unconfirmed
GUEST, unregistred user!
我在jsp中执行sql语句:
String sql="select * from tablA group by year(recDate),month(recDate)";
Connection con=ConnectionManger.getConnection();
PreparedStatement pstmt=con.prepareStatement(sql);
ResultSet rs=pstmt.executeQuery();
while(rs.next()){
out.print("test");
}
后台数据库:MySQL
但是没有任何输出(事实是有一条记录)
String sql="select * from tablA group by year(recDate),month(recDate)";
Connection con=ConnectionManger.getConnection();
PreparedStatement pstmt=con.prepareStatement(sql);
ResultSet rs=pstmt.executeQuery();
while(rs.next()){
out.print("test");
}
后台数据库:MySQL
但是没有任何输出(事实是有一条记录)