Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing CSV

Status
Not open for further replies.

CFProgrammer

Programmer
Jan 29, 2001
53
US
How to import a csv file. I know in sql server and Mysql you can use the bulk insert command.

Thanks In Advanced

Load Data infile...
 
One can load data into an Oracle database by using the sqlldr (sqlload on some platforms) utility. Invoke the utility without arguments to get a list of available parameters. Look at the following example:

sqlldr scott/tiger control=loader.ctl

This sample control file (loader.ctl) will load an external data file containing delimited data:
load data
infile 'c:\data\mydata.csv'
fields terminated by "," optionally enclosed by '"'
into table emp ( empno, empname, sal, deptno )

Hope this helps.
Talent is what you possess;
genius is what possesses you

 
Thanks Shantha,
I will give it a try. But I am loading this information through the web or passing the query in a sql statement through a datasource name.


Thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top