-
urgent help required regarding PL/SQL table
I am trying to do manipulations in a PL/SQL table. And I am getting the following error. Please solve the error.
SQL> DECLARE
2 TYPE DeptTabTyp IS TABLE OF dept%ROWTYPE
3 INDEX BY BINARY_INTEGER;
4 dept_tab DeptTabTyp;
5 begin
6 FOR i IN dept_tab.FIRST .. dept_tab.LAST LOOP
7 INSERT INTO dept (deptno, dname)
8 VALUES (dept_tab(i).deptno, dept_tab(i).dname);
9 END LOOP;
10 end;
11 /
DECLARE
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|