读书人

pb11.5数据库查询的BUG解决方案

发布时间: 2012-03-29 12:53:12 作者: rapoo

pb11.5数据库查询的BUG
以下语句在pb9中查询得出结果ll_cnt=1(正确的结果),但在PB11.5中得出结果0
其中变量ls_c是空值
select count(*) into ll_cnt from ab
where a='01' and b='01'and c =:ls_c;

请各位高手指教!


[解决办法]
select count(*) into ll_cnt from ab
where a='01' and b='01'and c =:ls_c;

应该是
select count(*) into :ll_cnt from ab
where a='01' and b='01'and c =:ls_c;
[解决办法]
注意变量

:ll_cnt
[解决办法]
上面已经给你说了,你还问。。
[解决办法]
我就木纳了,你PB环境怎么验证就通过了。

读书人网 >PB

热点推荐