美文网首页
Mysql date_format 格式化时间误差问题

Mysql date_format 格式化时间误差问题

作者: 激扬文字 | 来源:发表于2019-05-24 17:12 被阅读0次

    Mysql date_format 格式化时间结果产生误差
    原因:

    date_format(时间, '%Y-%m-%d %H:%I:%S')
    应该为
    date_format(时间, '%%Y-%m-%d %H:%i:%s')
    不然会产生几分钟误差,写法错误.

    相关文章

      网友评论

          本文标题:Mysql date_format 格式化时间误差问题

          本文链接:https://www.haomeiwen.com/subject/zbdnzqtx.html