SQLSTATE[HY010]: Function sequence error: 0 during insert

狂风中的少年 提交于 2019-12-02 04:35:16
STT LCU

Reading from the PHP bug report, users have reported that the issue is related to the format of the date being inserted, because (in that particular case) it was missing some digits from the months number.

That made me think: maybe the length of some input data was incompatible with the table column. In fact, I was writing 80 characters where only 60 could fit.

The solution

Check your input values: length, format and type. One of these may be incompatible with the column you're writing into. I'd expect a different message from the driver to be honest (data truncated in my case), because the problem isn't too hard to solve if you have better information.

As soon as I reduced the input length below the maximum value allowed, the query executed successfully

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