Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDBC-ODBC for reading data from Excel files

843859Jun 21 2006 — edited Jun 21 2006
I have project that needs to read data directly from Excel file. So I think simple JDBC-ODBC bridge will do. The most data are read correctly. However, when some column has mixed data type of text and number, it either return text data as null or number data as nul. I have set the type of column as 'text' in Excel file but it doesn't help at all.

One example is zip code. The column may look like this:

12345-0001
23456
....

12345-0001 should be treated as text by Excel and 23456 is number. One of this returns null when reading through Sun JDBC-ODBC driver, and other returns correctly.

Please help and if anyone had same issue before but solved the problem, please post your solutions and adivces.

Thanks!

Jeff
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2006
Added on Jun 21 2006
1 comment
237 views