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
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.
you can still access with DB2ADMIN.MYTABLE or db2admin.mytable ....
although it will display it as db2admin.myTable in control center.
ASKER
How about the flip scenario?
If db2 has it as MYTABLE,
can I do a
select * from "MyTable" ?
nat
If db2 has it as MYTABLE,
can I do a
select * from "MyTable" ?
nat
ASKER
Anyhow, let me not hold back your earned points.
Thanks;
nat
Thanks;
nat
ASKER
Thanks
nat