存储过程中游标报错

黑山老妖Hibbert 2007-11-02 10:05:54
create or replace procedure MONTH_SETTLE_ACCOUNT(startday date, endday date) as
last_costs number(8,2);
costs number(8,2);
patient_id varchar2(8);
operate_date date;
operator varchar2(8);
min_id number(2);
max_id number(2);
i number(2);

cursor r_cur1 is
select patient_id,visit_id,total_payments,discharge_date_time from pat_visit
where discharge_date_time >= startday and discharge_date_time < endday+1;
row_rec1 r_cur1%rowtype;

begin
...
end;

PLS-00201: identifier 'MEDREC.PAT_VISIT' must be declared

我已经grant select权限了,不知道为什么还是报错?
...全文
71 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
chishuiqingshen 2007-11-06
  • 打赏
  • 举报
回复
pat_visit 没有这个表,或者是表不在你的方案中。
jhhm 2007-11-05
  • 打赏
  • 举报
回复
是不是包里面有变量没有声明?

17,089

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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