MySql 日期转字符串时间:2023-03-09 01:19:42 1.date_format 日期转字符串 select date_format(now(),'%Y-%m-%d %H:%i:%s'); 2.str_to_date 字符串转日期 select str_to_date('2014-01-30','%Y-%m-%d %H:%i:%s')