Db/2 – CLP – Case Sensitivity

Background

Playing around with Db/2 Command Line and ended up with an interesting insight.

Query

Here is the query :-


db2 select count(*) from Dimension.Date

Error

Error Text


SQL0204N  "DIMENSION.DATE" is an undefined name.  SQLSTATE=42704

Error Image

SQLError.SQL0204N.20181027.1141AM

Remediation

Escape Object Name

Objective

Please quote object names by enclosing the schema and table in double quotes.

And, escape the double quotes with a back slash.

SQL


db2 select count(*) from \"Dimension\".\"Date\"

Output

SQLError.SQL0204N.20181027.1145AM

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s