在数据库中你怎么把时间进行格式化
在数据库中可以使用 DATE_FORMAT(date,format)进行时间格式化date 参数是合法的日期format 参数规定日期/时间的输出格式把时间格式化成字符串Oracle 格式化函数 to_charselect to_char( sysdate , 'yyyy/mm/dd') from dual;Mysql 格式化函数-- %Y 年,4 位-- %m 月,数值(00-12)-- %d 月的天,数值(00-31)-- %H 小时 (00-23...
原创
2020-08-26 20:50:02 ·
1528 阅读 ·
0 评论