你這樣的Result 的結果恆為false
解决方案 »
- 动态获得select的查询结果的列数
- SQL SERVER按时间 查询问题?
- oracle 多值判断查询问题请教,谢谢!
- 关于 connect by 怎么样用他对递归表分组统计
- 改变索引的的问题!!急!!
- 在Unix如何启动db studio等数据库管理配置界面?
- ORACEL数据库取值的问题。在线等(揭帖率100%),分不够另外加。急!!!!!
- utl_file是什么?有什么资料?有什么书?来者有份!
- 谁能给我一段有关创建一段简单的存储过程和游标识的简单代码?
- 一个奇怪的查询速度问题??在线等待! 都穷的只剩这100分了 大家帮帮忙!
- Oracle 执行计划
- 急!关于OCI.DLL问题,在线等待中。
postid in varchar2,
emplid in varchar2)
return boolean
is
Result boolean;
temp_postid varchar2(18);
cursor c_temp_postid is
select postid from org_empl_in_post epost ,org_temp_in_post tpost where epost.emplid = tpost.grant_emplid(+) and tpost.authorized_emplid = emplid;
cursor c_proxy_postid is
select Proxypostid from org_post_proxy ppost ,org_empl_in_post epost where ppost.authpostid = epost.postid(+) and epost.emplid = emplid;
begin
open c_temp_postid;
loop
fetch c_temp_postid into temp_postid;
exit when c_temp_postid%notfound;
if (temp_postid = postid) then
Result := true;
end if;
end loop;
close c_temp_postid;
open c_proxy_postid;
loop
fetch c_proxy_postid into temp_postid;
exit when c_proxy_postid%notfound;
if temp_postid = postid then
Result := true;
end if;
end loop;
close c_proxy_postid;
Result := false;
return(Result);
end Isinpost;
/