MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Insert multiple rows through INSERT statement

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
psridhar
Beginner


Joined: 16 May 2004
Posts: 68
Topics: 26

PostPosted: Tue Mar 14, 2006 7:21 am    Post subject: Insert multiple rows through INSERT statement Reply with quote

Hi

My table has 3 columns and I have some rows in a flat file as follows.

Code:
1   aaa   xxx
2   bbb   yyy
3   ccc   zzz
.   ...   ...


Shall I insert all those rows in to my table with a single INSERT statement?

Actually, I have 300 rows in flat file and I am inserting INSERT INTO MY.TABLE VALUES after every row in the flat file any my flat file becomes some thing like below...

Code:
INSERT INTO MY.TABLE VALUES
1   aaa   xxx
INSERT INTO MY.TABLE VALUES
2   bbb   yyy
INSERT INTO MY.TABLE VALUES
3   ccc   zzz
.   ...   ...



Can anybody help me out...

Regards
Sridhar
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 14, 2006 8:49 am    Post subject: Reply with quote

psridhar,

Why not simply load RESUME the flat file to your table? if you insist in using the insert statement then check the following topics which talk about generating sql statements.

http://www.mvsforums.com/helpboards/viewtopic.php?t=2787&highlight=sqlcards

http://www.mvsforums.com/helpboards/viewtopic.php?t=3369&highlight=sqlcards

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group