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 

Column names with double Quotes

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


Joined: 25 Feb 2004
Posts: 31
Topics: 16

PostPosted: Mon Apr 05, 2004 8:40 am    Post subject: Column names with double Quotes Reply with quote

Our clients are facing a problem due to the new version 7 of DB2.
So they requested to change a Db2 table column field which is used by the source (application). They are asking us to change a column name NAME to "NAME".

After generating the DCLGEN we checked the column name 'NAME'. This column name is not created with double quotes.

Whether the column names of the table which is used in the source should be used with double quotes.

or

Where should these column names be used with double quotes?


Thanks
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 317
Topics: 50
Location: Germany

PostPosted: Mon Apr 05, 2004 9:31 am    Post subject: Reply with quote

Hi,

YEAR for example is an reserved word in DB2. If you have an table with a column YEAR you should code for example

INSERT INTO <tablename> "YEAR", FIELD1, FIELD2.... VALUES ('2004', '...........)

Use the double quote to specify the fields names in SELECT. UPDATE, INSERT .... statements.
Back to top
View user's profile Send private message
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