Date t = new Date();
long l = t.getTime();
Timestamp time = new Timestamp(l);
Connection con = DBUtils.getConnetion();
String sql = "select * from book_pl group by bookname having pl_date = ? order by avg(book_score) desc";
PreparedStatement pstam = con.prepareStatement(sql);
pstam.setTimestamp(1,time);
ResultSet rs = pstam.executeQuery();
这段代码哪里错了,一直在报错
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-