SQL加载程序控制文件

时间:2015-03-26 01:45:55

标签: sql loader controlfile

我的控制文件有问题,无法分区我的数据文件。我使用空格来解析我的数据文件,但它没有正常工作。这是我的控制文件

load data
characterset UTF8 length semantics char 
infile 'load.dat'
replace 
into table nfl 
fields terminated by whitespace optionally enclosed by "'"
TRAILING  NULLCOLS
(RANK,PLAYER,TEAM ,ATTEMPTS,PCT, YDS, YDS_A, LONGS,TD,INTS,SACK,RATE,YDS_G)

我的数据文件是:

RK  PLAYER                  TEAM   COMP ATT PCT     YDS    YDS/A  LONG  TD  INT SACK RATE   YDS/G
1   "Drew Brees, QB"          NO    456 659 69.2    "4,952" 7.51    69  33  17  29  97      310
2   "Ben Roethlisberger, QB" PIT    408 608 67.1    "4,952" 8.15    94  32  9   33  103.3   310
3   "Andrew Luck, QB"        IND    380 616 61.7    "4,761" 7.73    80  40  16  27  96.5    298
4   "Peyton Manning, QB"     DEN    395 597 66.2    "4,727" 7.92    86  39  15  17  101.5   295
5   "Matt Ryan, QB"          ATL    415 628 66.1    "4,694" 7.48    79  28  14  31  93.9    293
6   "Eli Manning, QB"        NYG    379 601 63.1    "4,410" 7.34    80  30  14  28  92.1    276
7   "Aaron Rodgers, QB"       GB    341 520 65.6    "4,381" 8.43    80  38  5   28  112.2   274
8   "Philip Rivers, QB"       SD    379 570 66.5    "4,286" 7.52    59  31  18  36  93.8    268

0 个答案:

没有答案