Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tibco中SQL预编译语句中并非所有变量绑定错误_Sql_Database_Oracle_Oracle Sqldeveloper_Tibco - Fatal编程技术网

Tibco中SQL预编译语句中并非所有变量绑定错误

Tibco中SQL预编译语句中并非所有变量绑定错误,sql,database,oracle,oracle-sqldeveloper,tibco,Sql,Database,Oracle,Oracle Sqldeveloper,Tibco,我正在使用Tibco BW JDBC查询活动。我的blow语句在SQL developer中运行良好,但没有得到编译,因为它给出了一个错误ORA-01008:并非所有变量都绑定 select (cast(fech2 as timestamp) - cast(fech1 as timestamp) )total from ( select MIN(CASE WHEN message ='ABC' THEN time_stamp END) fech1, MIN(CASE WHEN messa

我正在使用Tibco BW JDBC查询活动。我的blow语句在SQL developer中运行良好,但没有得到编译,因为它给出了一个错误ORA-01008:并非所有变量都绑定

select (cast(fech2 as timestamp) - cast(fech1 as timestamp) )total 
from
( 
select MIN(CASE WHEN message ='ABC'  THEN time_stamp END) fech1, 
MIN(CASE WHEN message ='efg'   THEN time_stamp END) fech2 
from log where Application = 'MNC' 
AND tid=?  
group by tid)

请帮忙?正如我所说,运行此语句不需要SQL developer中的任何更改。

tid=?需要绑定一个变量。SQL开发人员应该在索引::1处抛出缺少的IN或OUT参数。SQL开发人员很好,我可以替换吗?有价值。这是Tibco BW抛出的错误。您需要设置绑定变量的值,就像前面提到的一样