Created
August 11, 2013 17:47
Page process for deleting rows from EMP and DEPT table.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare | |
l_emp apex_application_global.vc_arr2 := apex_util.string_to_table(:p17_empnos); | |
l_dept apex_application_global.vc_arr2 := apex_util.string_to_table(:p17_deptnos); | |
begin | |
for i in 1 .. l_emp.count | |
loop | |
delete from emp where empno = l_emp(i); | |
end loop; | |
for i in 1 .. l_dept.count | |
loop | |
delete from dept where deptno = l_dept(i); | |
end loop; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment