dbTalk Databases Forums  

INSERT

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss INSERT in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Magnet
 
Posts: n/a

Default INSERT - 04-19-2011 , 12:49 PM






Hi,

This is a weird one. I have a procedure where I use BULK COLLECT:


OPEN mf_detail;
FETCH mf_detail BULK COLLECT INTO v_mf_record;
CLOSE mf_detail;

Then I try to use FORALL to insert the data:


FORALL x IN v_mf_record.FIRST .. v_mf_record.COUNT
INSERT INTO monthly_mf_snapshot VALUES v_mf_record(x);

Now, that statement gives me an error:

ERROR at line 1:
ORA-01861: literal does not match format string
ORA-06512: at "MF_FUNCTIONS", line 1435
ORA-06512: at line 1

However, if I do individual inserts for each column, it works fine.
Only because there are 134 columns do I want to use FORALL, but why
does that give an error and the individual columns do not? Datatypes
are the same......

Thoughts? We're on 10gR2

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.