3.創建ctl文件,文件名為result.ctl,內容如下:
Load data infile 'result.txt'
Append into table test
(
head_id char(6) terminated by ',',
head char(20) terminated by ',',
area_code char(9) terminated by ',',
head_length char(2) terminated by ',',
comments char(60) terminated by ','
)
4.創建批處理文件,文件名為load_data.bat,內容如下
sqlldr userid=username/userpass@SID control=result.ctl log=result.log
pause
5.把上述文件放到同一個目錄裡面,執行load_data.bat文件就OK了。