str_to_date(class_time,'%Y%m%d %H:%i:%s') 在sql里转换就行了
select str_to_date(class_time,'%Y%m%d %H:%i:%s') a from a order by a desc ;