Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bulk Insert with only a few columns

485654Oct 7 2008 — edited Oct 8 2008
Hi,

is it possible to bulk insert only a few columns?

example Table a (column a,colum b optional)
Table b(column a)

Now i want to bulk insert table b into table a. But only the column a.

DECLARE
Type v_table IS table b%ROWTYPE;
t_table v_table;
BEGIN
SELECT * BULK COLLECT INTO t_table
FROM table b

FORALL i IN 1..t_table.COUNT SAVE EXCEPTIONS
INSERT INTO table a
VALUES t_table(i);
END;
END;

but an error occured PL/SQL: ORA-00947 .so i changed the insert statement into
INTER INTO table a(a)... but no sucess.


is there any chance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2008
Added on Oct 7 2008
10 comments
2,112 views