mysql日期格式转化

select DATE_FORMAT( '20170701', '%Y-%m-%d');

先挖坑

原文地址:https://www.cnblogs.com/tuhooo/p/7766221.html