摘要: 场景:mysql表table存的日期列为dt,数据格式为yymmdd,例如:20191030 select concat(substr(dt,1,4),'-',substr(dt,5,2),'-',substr(dt,7,2)) from table where dt = '20191030' 结果 阅读全文
posted @ 2019-10-30 21:07 karry2karry 阅读(1986) 评论(0) 推荐(0)