Re: Fixed-length fields
I solved it. I made it think it was a one-column file and substringed it.
LOAD DATA INFILE ?
INTO TABLE the_table FIELDS TERMINATED BY '\0' (@var) SET
field_1=Trim(SubString(@var, 1, 7)),
field_2=Trim(SubString(@var, 9, 2)),
field_3=Trim(SubString(@var, 12, 25)),
field_4=Trim(SubString(@var, 38, 25))
Subject
Views
Written By
Posted
8199
February 05, 2010 02:31PM
Re: Fixed-length fields
3861
February 24, 2010 10:27AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.