问题描述
- 这段代码哪里错了,一直在报错
- 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(1time);
ResultSet rs = pstam.executeQuery();
解决方案
报的什么错?你都不说
时间: 2024-10-07 12:17:53