Link to home
Create AccountLog in
Avatar of natgross
natgross

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of sachinwadhwa
sachinwadhwa
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of natgross
natgross

ASKER

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

Thanks;
nat