摘要: 使用 DATE_FORMAT(get_date, '%Y-%m-%d') 函数进行格式化。 其中:get_date 是需要截取的字段名;'%Y-%m-%d' 是格式化后的日期格式。 select date_format('1997-10-04 22:23:00','%y %M %b %D %W %a 阅读全文
posted @ 2017-12-28 08:26 icuke 阅读(23776) 评论(4) 推荐(0) 编辑