怎么在mysql中将时间戳转换成时间格式

2025-03-01 10:31:01
推荐回答(1个)
回答1:

在实现类中查询数据库后,往对象中设置值的时候用getTimestamp()

如:对象名.setPubtime(rs.getTimestamp(1));