| 
 | 
 
 
select count(1) into :str2 from "tongji" 
                where "xfdate" = :tjrqd and "cardnum" = :str1 ; 
 
select count(xftime) into :str2 from "tongji" 
                where "xfdate"=:tjrqd and "cardnum" = :str1 ; 
 
如果未检索到数据,sqlcode的返回值不同. 
 
count(1)的返回值是空 ,sqlcode 是100 
count(列名)的返回值是0 , sqlcode 是 0  
 
哪位给讲讲 ? 
 
 |   
 
 
 
 |