Blog
DB2utor

Advertisement

« Explaining How DB2 Will Get Data for a Given SQL Statement | Main | Evolution of Online Schema Change to Database Definition on Demand »

September 17, 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83545a5d153ef00e54ef252728834

Listed below are links to weblogs that reference Reserved Words in DB2 9 for z/OS:

» Reserved words: DB2 9 edition from Getting the Most out of DB2 for z/OS and System z
With every release of DB2, additions are made to the list of reserved words in the SQL Reference manual (for DB2 9 it's SC18-9854 with the latest version as of this writing being placed on the web March 2007). DB2... [Read More]

» DB2 reserved words: DB2 9 edition from Getting the Most out of DB2 for z/OS and System z
With every release of DB2, additions are made to the list of reserved words in the SQL Reference manual (for DB2 9 it's SC18-9854 with the latest version as of this writing being placed on the web March 2007). DB2... [Read More]

» DB2 Reserved words: DB2 9 edition from Getting the Most out of DB2 for z/OS and System z
With every release of DB2, additions are made to the list of reserved words in the SQL Reference manual (for DB2 9 it's SC18-9854 with the latest version as of this writing being placed on the web March 2007). DB2... [Read More]

» DB2 Reserved words: DB2 9 edition from Getting the Most out of DB2 for z/OS and System z
With every release of DB2, additions are made to the list of reserved words in the SQL Reference manual (for DB2 9 it's [Read More]

Comments

Adrian

Hi,

There's two typo's in the SQL at 'RENAM and 'ROUND_CEILIN. I guess you did a cut/paste and got truncated. Also SUBSTR(NAME,1,20) returns an error in a V8 CM environment.

...adg

Troy Coleman

Hi Adrian,
Yes I did a cut and paste and I'm not sure how the SUBSTR length was set to 20 when it should have been 18. I've made the needed changes.

Troy

Thanikachalam

How will you define a table with Db2 Reserve words as one of column in it? Do we need to take any special attention....

Pls answer... Your effort is greatly appreciated.

Troy Coleman

The interesting thing is the SQL parser has changed. It is much smarter in DB2 9 than it was back in version 8. Normally I would say you need to put quotes "IS" around the text. I just ran a test using "IS" without quotes as a table name and as a column name and it worked. But in general you want to avoid using reserved words and when you do use reserved words you want to put quotes around them.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.