oracle - How to store the .dat file name in the table using SQL Loader -


i have hundreds of data files have same structure , need loaded same table. however, there column called "filename" in table, , supposed store name of .dat file data loaded in there.

i know create separate control file each .dat file pain do. can suggest better way or how generate control files list of dat files?

probably easiest thing use single control file not populate filename column, , after loading each file use sqlplus execute update like:

update table set filename='&1' filename null; 

so each new set of rows loaded null value filename, update rows have null current filename.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -