您需要使用sql时间戳记保存到数据库。将您的java.util.Date转换为java.sql.Timestamp:
ps.setTimestamp(new java.sql.Timestamp(myDate.getTime()));
上一篇 在sqlite中搜索字段中每个单词的匹配前缀
下一篇 通过IQueryable循环与使用C#中的Reader.Read()通过Datareader循环相同
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号