日期与字符串转变的问题

如果数据库中日期类型是timestamp

那么在进行插入sql书写的时候就要

to_timestamp(#{},'yyyy-mm-dd hh24:mi:ss')
不能使用to_date方法,否则会出现时分秒全部变成0的问题。

posted @ 2023-01-17 16:08  技术白菜  阅读(18)  评论(0编辑  收藏  举报