This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes populate data from csv into oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "populate data from csv into oracle" Watch "populate data from csv into oracle" New topic
Author

populate data from csv into oracle

Sam Venkata
Ranch Hand

Joined: Mar 06, 2006
Posts: 68
Hi,
I have a csv file and I need to populate the data into an oracle table.
The csv is in the form of excel sheet.
I tried to import the data from excel into MS Access and then export the same into oracle database but all the data is stored in the form of varchar(ex: number field in access is being stored as varchar in oracle table).
is there any thing that I could to keep the data type and still export the data to oracle table?

Thanks,
Samanth.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32609
    
215

Samanth,
Welcome to JavaRanch!

Going back a step, are the data types correct in Access?

Another approach that doesn't involve the intermediate Access is to use your own create DDL statement and then just directly import the CSV.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
 
subject: populate data from csv into oracle
 
It's not a secret anymore!