pb环境,同样的sql在ms sql server执行正常但是在oracle中无数据,为何?谢谢帮助
在pb环境下,嵌入式的角本
select u_name into :ls_find from u_files
where u_name =:ls_name and u_pass =:ls_pass;
在ms sql server能够返回结果,已经确保了ls_name,ls_pass都有数据,并且有满足条件的一条纪录,但是放到oracle环境下,就是没有任何数据,满足条件的记录数为0
然后改写脚本,把ls_name 和ls_pass的数据全部用实际字符串代替就可查到
select u_name into :ls_find from u_files
where u_name ='ccc' and u_pass ='111';
这样写,就可以查询到了,不知是什么原因,在查询之间,也观察了ls_name,ls_pass的数据,就是'ccc'和'111'
到底是什么原因呢????谢谢各位帮忙