DB2 fetch failure error

 ̄綄美尐妖づ 提交于 2019-12-23 03:53:05

问题


Am using DB2 database connection with PHP. When I run the particular query, it throws the below error

Error : db2_fetch_assoc(): Fetch Failure in...

The query will be like this.

SELECT UNIX_TIMESTAMP(concat('2011-07-18 ', hour)) AS orderTime from schedules

The query executes well. But When I try to fetch the records, it throws error. The hour value will be like '08:30:00'


回答1:


You Should run the same query on DB2 control center or db2cmd first, Then error can be more clear.

Moreover you can share rows of schedules table to understand the exact problem.



来源:https://stackoverflow.com/questions/6729663/db2-fetch-failure-error

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