IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error in SPUFI: ',' not a valid symbol


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
viv
Currently Banned

New User


Joined: 31 Oct 2006
Posts: 4

PostPosted: Tue Jan 23, 2007 6:59 pm
Reply with quote

when i try to insert multiple rows using the SPUFI am getting some error ',' not valid symbol or something.

say i insert like this
insert into t1 (a,b,c,d) values (1,2,3,4), (5,6,7,8);
I also tried
insert into t1 (a,b,c,d) values ((1,2,3,4), (5,6,7,8));
insert into t1 (a,b,c,d) for 2 rows values (1,2,3,4), (5,6,7,8);
(Here it gave 2 as some error)

So is there any way to insert multiple rows with insert in SPUFI?

In embedded SQL i think this is possible easily...!!!
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Jan 23, 2007 7:08 pm
Reply with quote

Does this apply?
Quote:
INSERT
There are two forms of this statement:
.. The INSERT via VALUES is used to insert a single row into the table or view using the values provided or referenced.
.. The INSERT via SELECT is used to insert one or more rows into the table or view using values from other tables, or views, or both.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Jan 23, 2007 7:35 pm
Reply with quote

viv,

you need to make this into two inserts.

insert into t1 (a,b,c,d) values (1,2,3,4);
insert into t1 (a,b,c,d) values (5,6,7,8);
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts U0016 error in JCL JCL & VSAM 4
No new posts python on z/OS error no encoding decl... Testing & Performance 0
No new posts IEW2315E 1369 Link error All Other Mainframe Topics 3
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
Search our Forums:


Back to Top