ncon在if之前,怎么说是用了if,ncon变成了0?

解决方案 »

  1.   

    你没有表达清楚你的意思,是不是使用了if后,0_result返回的值为0,据此判断ncon不是大于0的?
    如果是这样的话,你肯定 select count(*) into ncon from  YHjbxx@to_sybs  where   vjh = to_char(HH);的结果大于0吗?
      

  2.   

    就是用了if语句会改变select count(*) into ncon from  YHjbxx@to_sybs  where   vjh = to_char(HH); 这个值,莫名其妙的
      

  3.   

    这是不可能的!

    select count(*) into ncon from  YHjbxx@to_sybs  where   vjh = to_char(HH);
    后,返回ncon,看看值不就很清楚了!