Skip to content
California, TX 70240 | (1800) 456 7890

云博客

云博客

  • 前端
  • windos
  • 微信
  • 数据库
  • 移动开发
  • 技术杂谈
  • 前端
  • windos
  • 微信
  • 数据库
  • 移动开发
  • 技术杂谈
  • Home
  • Mysql中文字符串提取datetime
数据库

Mysql中文字符串提取datetime

云博小周宇2024年5月5日2023年8月23日1 Min Read

DATE_FORMAT无法用于提取含中文字符的时间字符串中的时间,
可以通过STR_TO_DATE来提取其中的信息,
如下:

SELECT STR_TO_DATE("2018年11月05日 15:00:00","%Y年%m月%d日 %H:%i:%S");

结果:

参考:

https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_str-to-date

Previous Post帝国cms修改成https后后台登陆空白的解决办法
Next Post[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on project test: The packaging for this project did not assign a file to the build artifact ->

近期文章

  • 36.VUE — 认识 Webpack 和 安装
  • kubernets kube-proxy的代理 iptables和ipvs
  • nginx + http + svn
  • 基于Docker搭建 Php-fpm + Nginx 环境
  • .net 5+ 知新:【1】 .Net 5 基本概念和开发环境搭建

近期评论

    © 2025. All Rights Reserved.