谢谢 kider, 让我学会了更多知识。 问题已解决。 |
试试这个函数: STR_TO_DATE(str,format) 这是DATE_FORMAT() 函数的倒转。它获取一个字符串 str 和一个格式字符串format。若格式字符串包含日期和时间部分,则 STR_TO_DATE()返回一个 DATETIME 值, 若该字符串只包含日期部分或时间部分,则返回一个 DATE 或TIME值。 更多参考: http://www.mysqlpub.com/onlinema ... -and-time-functions |
|申请友链|小黑屋|Archiver|手机版|MySQL社区
( 京ICP备07012489号 )
联系人:周生; 联系电话:13911732319
GMT+8, 2024-6-11 06:58 , Processed in 0.065033 second(s), 28 queries , Gzip On.
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.