setDate()问题 PreparedStatement ps = conn.prepareStatement(sql);
ps.setDate(12,record.getOrder_date());报错,提示The method setDate(int, Date) in the type PreparedStatement is not applicable for the arguments (int, Date)
其中getOrder_date()为
public Date getOrder_date()
{
return order_date;
}
private Date order_date;
这两个参数明显匹配啊,为什么不能用呢 ------解决方案--------------------