求PL/SQL的一条语句

bibidog 2004-02-19 11:52:08
我现在想写一个过程,过程中需要做一个判断表内是否存在一条记录
Create Procedure produce11
(
V_TableID in integer,
V_key1 in integer,
V_key2 in integer,
V_key3 in varchar2,
V_key4 in varchar2,
V_num out integer)
As
V_cnt integer;
Begin
if (V_key2 is not null) and exists(select 1 from table where BMID V_key2 and CWareID = V_key1) then
V_num:=1;
else
V_num:=0;
end if;
end produce11;
就是中间的那条exists语句
...全文
23 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧