Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a string column in a table with ; as delimiter but number of parts are not fixed it can be 1 or 5 or 100.
Any idea how can I split the string and create separate records from it at load time.
Example:
LOAD ID,
LongString, // LongString have values like "ABC;DEF;HIJ;KLM" OR "XYZ;OPR;LMJ" OR "PPP;SSS"
RESIDENT OldTab:
Thanks
Hello,
Use
LOAD ID, SubField(LongString, ';') AS FieldNameRESIDENT OldTab;
Hope that helps.
Hello,
Use
LOAD ID, SubField(LongString, ';') AS FieldNameRESIDENT OldTab;
Hope that helps.
Thanks
It worked very well...never knew I could use subfield without field_no parameter.
Very Quick for solution Thanks