我有一个我的csv文件,以显示其格式化。我只是想在进一步说明之前确保我的数据正确上传到我的Oracle数据库中。我目前正在使用sqlloader来做到这一点。
"SERV TAP ID", "ACCT NUMBER", "MTR ID" , "SERV HOUSE","SERV STREET", "SERV TOWN", "BIL NAME","MTR DATE SET3","BIL PHONE","MTR SIZE","BILL CYCLE","MTR REMOTE ID"
"111111" , "222222222" , "33333333", "444", "Mark AVE", "Monroe", "Dos Equis", "07092008", "" , "0058" , "21", "1480040662"
这是我的控制文件的样子。关于我做错什么的任何想法?
load data
infile GIS.csv
into table Billing
fields terminated by ","
(TAP_ID, ACCT_NUM, MTR_ID, SERV_HOUSE, SERV_STREET, SERV_TOWN, BIL_NAME, MTR_DATE_SET, BIL_PHONE, MTR_SIZE, BILL_CYCLE, MTR_RMT_ID)
答案 0 :(得分:0)
看起来对我好。我建议添加:
OPTIONALLY ENCLOSED BY '"'
跳过值和
周围的引号OPTIONS(SKIP=1)
跳过标题行。