Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Error in SPUFI: ',' not a valid symbol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Error in SPUFI: ',' not a valid symbol
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: 3158
Location: Tucson AZ

PostPosted: Tue Jan 23, 2007 7:08 pm    Post subject:
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    Post subject: Re: hi db2 query
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us