//MySQL Date类型 -> java.sql.Date java.sql.Date d = new java.sql.Date(Calendar.getInstance().getTime().getTime()); //MySQL Time类型-> java.sql.Time Time t = new Time(d.getTime()); //MySQL DateTime类型 -> java.sql.Timestamp java.sql.Timestamp = new java.sql.Timestamp(d.getTime())
时间: 2024-10-26 17:02:06