如何编写SQL Loader控件文件以将数据加载到多个表中

时间:2009-07-28 11:31:58

标签: sql oracle upload

我有一个包含3组不同信息的数据文件,如下所示:

@@@08016995BUILD  12/15/04POSITION
"AABPX    ","76826309","M","L","     1509.4340"
----More similar Records_-------------------------
@@@08016995BUILD  12/15/04SECDESC
"AABPX    ","mf","AMERICAN AADVANTAGE BALA","NCED PLAN AHEAD         ","                        ","                        ","  14.4500","121504","   14.4500"
-----More similar Records-----------------------
@@@08016995BUILD  12/15/04CUSTOMER
"xxxxxxx","FINANCIAL SOLUTIONS      ","ACCOUNT             ","xxxxx ST               ","xx            xxxxx","                              ","000-000-0000","xxx-xxx-xxxx","xxxxx","xx","xxxxx","   ","xx","  "," "," "
          ","  14.4500","121504","   14.4500"
-----More similar Records-----------------------
end of data file

现在我想写一个控制文件,它将第一组数据推送到位置表,第二组数据推送到sec desc表,第三组数据推送到customer表。我可以这样做吗?

1 个答案:

答案 0 :(得分:2)

http://www.orafaq.com/wiki/SQL * Loader_FAQ#Can_one_load_data_from_multiple_files.2F_into_multiple_tables_at_once.3F