DB2提取失败错误 [英] DB2 fetch failure error

查看:189
本文介绍了DB2提取失败错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用与PHP的DB2数据库连接。当我运行特定的查询时,会抛出以下错误

 错误:db2_fetch_assoc():Fetch Failure in ... 

查询将是这样的。

  SELECT UNIX_TIMESTAMP(concat('2011-07-18',hour))AS schedule从计划

查询执行得很好。但是当我尝试获取记录时,会引发错误。小时值将如08:30:00

解决方案

您应该在DB2控制中心或db2cmd上运行相同的查询首先,然后错误可以更清楚。



此外,您可以共享行列表以了解确切的问题。


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'

解决方案

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.

这篇关于DB2提取失败错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆