数据库--Postgresql语法--date、年月日、时间类型整理
1.时间表示pg中的LOCALTIMESTAMP(0),相当于oracle中的sysdate2.时间进行格式转换2.1 to_Char to_char(LOCALTIMESTAMP(0), 'YYYY-MM-DD HH24:MI:SS') as detect_time2.2 to_Date to_date('2018-03-12 18:47:35','yyyy-MM-dd') to_date(#{birthdate},'yyyy-MM-d...
原创
2020-09-29 09:49:09 ·
6062 阅读 ·
0 评论