On Tue, 28 Mar 2006 19:17:36 -0700, Ian wrote:
natG wrote: 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?
What difference does it make? By default, DB2 ignores case in SQL
statements (as you've found), so:
select column1 == select ColuMn1 == SELECT COLUMN1
Well, if you have a J2EE server, that automatically [internally] surrounds
your object names with quotes, there might be a problem.
Suppose db2 has a table, MYTABLE, with a column COLUMN1. Now, *via jdbc*,
SELECT "Column1" from "MyTable"
Since the quotes are telling it to be case sensitive, it will not match
with its upper-cased names. (At least that's how it is with MySql.)
nat