This is a typical case of complex delimited file scenario:
If you take " as your delimiter, you will have following columns:
null
12345
,
ABCD
,
STU,GHj
,
01/01/2012
null
and , will also be incorrect .... hence .... you need to come up with a pre-processing script to:
- remove " in case its at the start of row, or at the end just before new-line character
- replace "," with may be || or $$ (any unique character which is not supposed to come in data .... " and , are wrong options)
Only then you will be able to process such file.
HTH!
This is a typical case of complex delimited file scenario:
If you take " as your delimiter, you will have following columns: