I have a table which is to be populated via sqlloader. Is it possible to employ logic in a ctl file so that it can cater for files which have different numbers of fields? e.g.
Table = field1 field2 field3 field4
File format 1 = field1 field2 field4
File format 2 = field 1 field2 field3 field4
Would it be easiest to switch between different .ctl files based on file name (e.g. make the one with 4 fields a distinctly different name to one with 3), or can sqlloader 'count' the number of fields it has been supplied and then apply them to the table logically though a case statement?
One further point is that all records within the file with conform to one format or the other, it will not vary from row to row which will hopefully make this task much easier.