定义一个游标
cursor rad_cursor is Select CustID From PayAccount where CustID = iCustID and deptID= ideptID;
然后看rad_cursor是否为空。
应该行,但我觉得是个笨办法,抛砖引玉!也请高手指教