【发布时间】:2010-10-16 20:33:28
【问题描述】:
表T1结构:col1编号,col2编号
Table T2 结构:col1 number,col2 number,col3 number
csv 文件:
row1:1,2,3,4,5,6
row2:1,2,3,4,5,6
我希望表 T1 中的数据为:
col1 col2
===== ====
1 3
1 3
我希望表 T2 中的数据为:
col1 col2 col3
===== ==== ====
1 3 5
1 3 5
跟随控制文件不工作
load data
infile *
insert into table T1 fields terminated by ',' TRAILING NULLCOLS
(col1,fill1 filler,col2)
insert into table T2 fields terminated by ',' TRAILING NULLCOLS
(col1,fill2 filler,col2,fill3 filler,col3)
begindata
1,2,3,4,5,6
1,2,3,4,5,6
请帮我解决这个问题。
【问题讨论】:
-
这是什么版本的sql?请添加标签
-
如果它解决了您的问题,请接受任何答案..它将帮助其他人...
标签: sql loader load-data-infile