SQLLDR的一個筆記

jolly10發表於2008-01-25

將.xls檔案用製表符分隔形式儲存為C:INTERVIEW.txt

建立c:input.ctl如下:
load data
infile 'C:INTERVIEW.txt'
append into table INTERVIEW_TMP
fields terminated by X'09' TRAILING NULLCOLS
(NAME,CELL_PHONE,HOME_PHONE,ADDRESS,BACHELOR)

c:>SQLLDR CONTROL=C:INPUT.CTL LOG=C:INTERVIEW.LOG

[@more@]

將.xls檔案用製表符分隔形式儲存為C:INTERVIEW.txt

建立c:input.ctl如下:
load data
infile 'C:INTERVIEW.txt'
append into table INTERVIEW_TMP
fields terminated by X'09' TRAILING NULLCOLS
(NAME,CELL_PHONE,HOME_PHONE,ADDRESS,BACHELOR)

c:>SQLLDR CONTROL=C:INPUT.CTL LOG=C:INTERVIEW.LOG

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271283/viewspace-998395/,如需轉載,請註明出處,否則將追究法律責任。

相關文章