fetch tempcur into l_nwk_seg;
if tempcur%notfound then
l_nwk_seg:='ppp';
end if ;
if tempcur%found then
l_nwk_seg:='ppp2';
end if;
这样可以判断是否为有记录或没记录
但是要判断取过来的字段(就取一个)是否为null怎么判断?
...全文
2883打赏收藏
判断游标取过来的值是否null
fetch tempcur into l_nwk_seg; if tempcur%notfound then l_nwk_seg:='ppp'; end if ; if tempcur%found then l_nwk_seg:='ppp2'; end if; 这样可以判断是否为有记录或没记录 但是要判断取过来的字段(就取一个)是否为null怎么判断?