读书人

pb11.5数据库查询的BUG,该怎么解决

发布时间: 2013-01-06 15:44:48 作者: 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

热点推荐