我正在尝试将数据加载到 Rocket Universe 数据库中。在浏览 SQL Admin 文档时,他们给出了以下示例,但很少描述配置文件的情况。任何人都可以更清楚地了解配置文件是如何定义的吗?有这方面的示例资源吗?谢谢!
以下是数据文件的示例:
tomr:"Tom" '"'Thomas Rand^29:77:240:"blond"green:Kevin
lisam:Lisa Michaels^28:66:130:"brown"brown:Troy
kellyv:Kelly Verock^37:72:180:"black"brown:none
paulv:Paul Vander^33:63:110:"brown"brown:Trisha
andyu:Andy Andrews^28:74:250:"blond"blue:none
ken:Ken Thompson^35:73:170:"grayy"blue:Peter
tim:Tim Tarks^35:75:180:"black"brown:none
steve:Steve Gough^35:68:180:"black"green:Nancy
ellen:Ellen Peters^33:75:220:"black"brown:Michael
derek:Derek Starks^34:66:120:"brown"brown:Karissa
The following example shows the corresponding configuration file:
FILE NUMBER: 1
LOCATION: ../dataloader/names2.data
Row Separator CHARACTER(S): 10
COLUMN SEPARATOR CHARACTER(S): :
QUOTE CHARACTER: "
ALTERNATE QUOTE CHARACTER: '
COLUMN NUMBER: 1
SOURCE FORMAT: RAW
COLUMN NUMBER: 2
SOURCE FORMAT: RAW
NEXT SEPARATOR CHARACTER(S): ^
COLUMN NUMBER: 3
SOURCE FORMAT: RAW
COLUMN NUMBER: 4
SOURCE FORMAT: RAW
COLUMN NUMBER: 5
SOURCE FORMAT: RAW
COLUMN NUMBER: 6
SOURCE FORMAT: RAW
WIDTH: 7
COLUMN NUMBER: 7
SOURCE FORMAT: RAW
COLUMN NUMBER: 8
SOURCE FORMAT: RAW
DESTINATION FILE:
LOCATION: TMP5950
AUTOSIZE: n
AUTOSIZE ROWS:
CREATE FILE: N
PARAMETER(S):
KEY COLUMN(S): KEY1
COLUMN NUMBER: KEY
COLUMN NAME: KEY1
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 1
COLUMN NUMBER: 1
COLUMN NAME: COL1
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 1
COLUMN NUMBER: KEY
COLUMN NAME: KEY2
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 2
COLUMN NUMBER: 2
COLUMN NAME: COL2
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 2
COLUMN NUMBER: KEY
COLUMN NAME: KEY3
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 3
COLUMN NUMBER: 3
COLUMN NAME: COL3
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 3
COLUMN NUMBER: 4
COLUMN NAME: COL4
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 4
CONVERSION TYPE: O
CONVERSION CODE: MD2
COLUMN NUMBER: 5
COLUMN NAME: COL5
SOURCE FILE NUMBER(S): 1
SOURCE COLUMN NUMBER(S): 8
>DATALOAD 5950.CONFIG