【发布时间】:2019-12-22 01:22:49
【问题描述】:
我收到此错误消息:
Error at line 1
ORA-06502: PL/SQL: numeric or value error
ORA-06512: in "SYS.UTL_MAIL", line 654
ORA-06512: in "SYS.UTL_MAIL", line 671
ORA-06512: in "APPS.PR_MAIL_ME", line 44
ORA-06512: in line 2
这是我的代码,我的光标:
cursor email_detail is
select email
from
(
<the subquery>
)
where rn = 1
and status in ('WARNING','ERROR','STAND BY');
然后,我想使用循环传递 utl_mail.send 函数中的每一封电子邮件
begin
for c in email_detail
loop
begin
utl_mail.send(sender => 'send@mail.com',recipients => c.email ,subject => 'Concurrents' ,message => 'adasdas');
end;
end loop;
end;
我尝试了很多次来解决这个问题,但我失败了,你能帮我解决这个问题吗?
【问题讨论】:
-
您需要编辑您的问题并发布minimal reproducible example 以及表格定义和示例表格数据。
-
嘿伙计,你好吗?我正在使用一个名为 utl_mail.send 的标准 Oracle 函数,但我不明白如何传递数组:(