Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007

    Unanswered: 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

  2. #2
    Join Date
    Jan 2007
    Jena, Germany
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts