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

Upload DB2 error 104


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 10, 2010 3:16 am
Reply with quote

And any clients/users who are supposed to create ad-hoc queries. . .
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Jun 10, 2010 2:01 pm
Reply with quote

you can not insert null like this

Code:
insert tab1(col1,col2,col3) values ('A',,'C')

Quote:
ILLEGAL SYMBOL ",". SOME SYMBOLS THAT MIGHT BE LEGAL ARE: DEFAULT ( ? CURRENT_SCHEMA ROW CURRENT_LC_CTYPE XMLELEMENT. SQLCODE=-104, SQLSTATE=42601

but you can as follows
Code:
insert tab1(col1,col2,col3) values ('A',null,'C')

or
Code:
insert tab1(col1,col3) values ('A','C')
Back to top
View user's profile Send private message
soumen2255

New User


Joined: 25 Jun 2008
Posts: 24
Location: Pune

PostPosted: Thu Jun 10, 2010 2:59 pm
Reply with quote

GuyC wrote:
you can not insert null like this

Code:
insert tab1(col1,col2,col3) values ('A',,'C')

Quote:
ILLEGAL SYMBOL ",". SOME SYMBOLS THAT MIGHT BE LEGAL ARE: DEFAULT ( ? CURRENT_SCHEMA ROW CURRENT_LC_CTYPE XMLELEMENT. SQLCODE=-104, SQLSTATE=42601

but you can as follows
Code:
insert tab1(col1,col2,col3) values ('A',null,'C')

or
Code:
insert tab1(col1,col3) values ('A','C')



Thank You GUYC, I investigated and found that it is exactly what you have pointed is the issue.

Thanks everyone for this help and sorry once again for the confusion.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top