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

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

问题描述

我正在使用带有 PHP 的 DB2 数据库连接.当我运行特定查询时,它会引发以下错误

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...

查询将是这样的.

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

查询执行良好.但是当我尝试获取记录时,它会引发错误.小时值将类似于 '08:30:00'

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

推荐答案

你应该先在DB2控制中心或db2cmd上运行同样的查询,这样错误会更清楚.

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天全站免登陆