mysql字符串转换成时间格式

SELECT    DATE_FORMAT(hiredate, '%Y-%m-%d') FROM   users ;

猜你喜欢

转载自blog.csdn.net/lihua5419/article/details/78415541