Load data from multiple data files into multiple tables using single control file

邮差的信 提交于 2019-12-11 07:03:11

问题


I have 3 data files and 3 tables. Is there any way to enter the data from the data files to their respective tables using only a single control file using parameters.

I know that we can use multiple datafiles to insert data into single table but i want multiple datafiles to insert data into multiple tables.


回答1:


I have not done it, but you can specify multiple files as long as they are the same layout by using multiple INFILE clauses. Then as long as there is some identifier in the record, you can use multiple INTO TABLE clauses, each with its own WITH clause. See the control file reference for more info. Please let us know how it works out.



来源:https://stackoverflow.com/questions/28842399/load-data-from-multiple-data-files-into-multiple-tables-using-single-control-fil

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!