MySQL 5.7 STR_TO_DATE

。_饼干妹妹 提交于 2019-12-02 12:03:12

As it says in the manual,

If the NO_ZERO_DATE or NO_ZERO_IN_DATE SQL mode is enabled, zero dates or part of dates are disallowed. In that case, STR_TO_DATE() returns NULL and generates a warning

That causes the result to be NULL in cases such like this, because your partial “date” contains zero values.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!