我正在尝试将祖鲁时间的“2009-03-04T17:49:20Z”插入到 mysql 表的日期时间类型列中。 知道我该怎么做吗?
最佳答案
使用 str_to_date()
像这样解析你的日期格式:
set myDate = str_to_date('2009-03-04T17:49:20Z', '%Y-%m-%dT%H:%i:%sZ')
关于mysql - 将祖鲁时间格式的日期时间插入mysql中的日期时间列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21819295/