mysql中字符串转换为时间: select str_to_date('20120221281112', '%Y%m%d%k%i%s'); 时间转换为字符串: select date_format(SYSDATE(),'%Y%m%d%k%i%s');