howto use mixed case names for tables and columns db2 8.2

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
LVL 1
natgrossAsked:
Who is Participating?
 
sachinwadhwaCommented:
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)
0
 
natgrossAuthor Commented:
Can you please explain what you mean that it is case insensitive *even with quotes*.

Thanks
nat
0
 
sachinwadhwaCommented:
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.
0
 
natgrossAuthor Commented:
How about the flip scenario?
If db2 has it as MYTABLE,
can I do a
      select * from "MyTable" ?
nat
0
 
natgrossAuthor Commented:
Anyhow, let me not hold back your earned points.

Thanks;
nat
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.