I am copying from a Database to another Database.
I am generalizing this program.
Actually to reduce the overhead of Data Type mapping between the source Database and target Database.
What I am doing ..... I am getting the Table column info using DatabaseMetadat a.getColumns and there I getting the Column type of java.sql.Types.
Now to map these types with the target Database types I am retrieving the SQL types using DatabaseMetadat a.getTypeInfo.
Now my confusion is some constant values are missing with a particular Database(here Postgres)
If my Source Database's Column Type matches with a Constant Value which is missing in my Target Database then what should I be doing?
Should I map this manually?
Please Help!
Debasis Jana
I am generalizing this program.
Actually to reduce the overhead of Data Type mapping between the source Database and target Database.
What I am doing ..... I am getting the Table column info using DatabaseMetadat a.getColumns and there I getting the Column type of java.sql.Types.
Now to map these types with the target Database types I am retrieving the SQL types using DatabaseMetadat a.getTypeInfo.
Now my confusion is some constant values are missing with a particular Database(here Postgres)
If my Source Database's Column Type matches with a Constant Value which is missing in my Target Database then what should I be doing?
Should I map this manually?
Please Help!
Debasis Jana
Comment