How to convert ms-excel file to oracle table?
Answers were Sorted based on User's Feedback
Answer / arup ratan banerjee
By means of Sqlloader
steps
------
1) Save the excel file as .csv
2) Give proper column headings
3) create a file named sqlload.ctl where u will write
load data
infile 'C:\HR_EMP_LWP_TMP.csv'
REPLACE
into table HR_EMP_LWP_TMP
fields terminated by ','
(emp_NO,yr_mon,lwp)
4) Load Oracle Client 9i
From command prompt run
c:\oracle_client9i\bin\sqlldr <user/password@tnsname>
sqlload1.ctl
5) The excel file gets converted to Table in Oracle
Is This Answer Correct ? | 7 Yes | 3 No |
Answer / ts mishra dba
load data
infile 'c:\head.csv'
replace
into table allotment
field terminated by ',' optianally enclosed by '"'
trailing nullcols
(ALLOTMENT_ID,ALLOTMENT_DATE,DEMAND,MAGOR,SUB,MINOR,SCHEEM,S
EGMENT,OBJECT,DETAIL,AMOUNT,DDO_CODE)
run at run command this
sqlldr scott/tiger@ntts control=c:\head.ctl
Is This Answer Correct ? | 4 Yes | 3 No |
what are the t string functions available in tsql? : Transact sql
What is diff between bulk collect and forall
What is data definition language?
What pl/sql package consists of?
How to find last day of the month in sql query
how can we submit a form without a submit button? : Sql dba
What is RAC in oracle?
Which command is used to call a stored procedure?
Why do we need pl sql?
In packages the source code is compiled into p code ? how do we describe the p code
What is cursor explain with example?
What are triggers, and when would you use them?