I have very dirty data in a csv file I need to periodically dump into a table. This csv file contains all the previous records from the previous days (thanks third party vendor!), but I am content to let the unique constraint keep those from duplicating.
However, the nature of this dirty data has nincompoops fat-fingering extra commas into the data itself, and double-quoting the fields is just too difficult (don't strain yourself third party vendor!). So, while the ideal record has 7 fields, some of these are clocking in at up to 12 fields.
And the field I really need is the date attached. It's always the 7th field (unless it's the 8th, 9th, 10th, 11th, or 12th).
Is there a way to specify that this column is the last field, always?
The control file seems to allow fields-by-position, but only for fixed length records (characters 45-68, etc.). Is there some way to just tell it "the last one" and work from that?
Note: Having dug through the documentation and learned that every interesting/useful thing I need to do is impossible, I already know the answers, but I have to ask anyway.