If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Reserved Words as Column Names db2 Vsn10

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-22-10, 09:25
dbzTHEdinosaur dbzTHEdinosaur is offline
Registered User
 
Join Date: Jun 2007
Location: germany
Posts: 96
Reserved Words as Column Names db2 Vsn10

I have hundreds of tables and thousands of modules in a legacy system,
which i have successfully migrated to DB2 V9.1 (z/OS).

Does Version 10 pre-compiler, flag/error SQL that has Reserved-Words-Column names,
that are not quoted?.

with quotes, am confident that the SQL will also pass Vsn 10,
but I want to avoid modifying SQL (and put in the quotes).

Words in question are: VALUE, TYPE, USAGE, GROUP

Anyone with Vsn 10 experience?
__________________
Dick Brenholtz, Ami in Deutschland
Reply With Quote
  #2 (permalink)  
Old 11-23-10, 15:21
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You usually don't have to use delimited identifiers (quoted ones) if you don't use mixed case characters or special characters like spaces in the name. The SQL parser in DB2 is context-sensitive and usually knows when a string is a keyword or a column/table/schema name.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On