【发布时间】:2009-10-27 15:22:27
【问题描述】:
我正在尝试让我的存储过程在 Oracle 中运行,但遇到了下溢错误。我正在尝试从六个不同的表中删除相关信息。我可以在 SQL Developer 中单独运行删除语句而不会出错。当我尝试从我的 C# 代码隐藏中运行该过程时,我收到一个异常并返回下溢错误。有什么建议吗?
代码如下:
Procedure DeleteProf(i_prof_sk IN NUMBER) IS
BEGIN
delete from nt_fac where nt_per_sk in (select nt_per_sk from nt_per
where nt_prof_sk=i_prof_sk);
delete from nt_per_fact where nt_per_sk in (select nt_per_sk from nt_per
where nt_prof_sk=i_prof_sk);
delete from nt_per where nt_per_sk in (select nt_per_sk from nt_per
where nt_prof_sk=i_prof_sk);
delete from nt_prof_case where nt_prof_sk=i_prof_sk;
delete from nt_prof_fact where nt_prof_sk=i_prof_sk;
delete from nt_prof where nt_prof_sk=i_prof_sk;
END;
【问题讨论】:
-
我的建议是发布相关的代码部分。