We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

howto use mixed case names for tables and columns db2 8.2

natgross
natgross asked
on
Medium Priority
893 Views
Last Modified: 2008-01-09
Hi;
I am transferring data from mysql to db2 using my own java/jdbc program. Working out ok, except for the fact that our apps use mixed-case names for tables and columns. Although my CREATE TABLE commands issued via jdbc uses mixed case for the names, db2 insists on using only upper case. (This also happens from the CLP or DB2CC, but my concern is for it to [also]work via jdbc.)

Is there a simple setting at the database level to allow mixed case?

How do I tell db2 NOT to uppercase my table and column names?

Thanks,
nat
Comment
Watch Question

db2 by default change column & table names to uppercase unless you give " (quotes).

try

"db2admin"."myTable"

db2 is case insensitive (even if you specify quotes)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Can you please explain what you mean that it is case insensitive *even with quotes*.

Thanks
nat
if you create table with "db2admin"."myTable"

you can still access with DB2ADMIN.MYTABLE or db2admin.mytable ....

although it will display it as db2admin.myTable in control center.

Author

Commented:
How about the flip scenario?
If db2 has it as MYTABLE,
can I do a
      select * from "MyTable" ?
nat

Author

Commented:
Anyhow, let me not hold back your earned points.

Thanks;
nat
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.