in reply to Checking the length of all row elements
Ok. let me correct my question.
The requirement is that I need to upload the data from a flat file into table.
Before uploading I need to make sure that none of field elements of each row are more than 255 characters.
If there is a single element greater than 255 character, I need to report that data as improper data.
So only way I can think of in Perl is to get the length of each element and do a check using length function.
Other way would be to upload the data using Oracle's sqlldr and then check the length using a sql query. But not sure which one would be more optimized - Oracle or Perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking the length of all row elements
by Marshall (Canon) on Jul 24, 2010 at 23:36 UTC | |
|
Re^2: Checking the length of all row elements
by oko1 (Deacon) on Jul 24, 2010 at 22:02 UTC | |
|
Re^2: Checking the length of all row elements
by jwkrahn (Abbot) on Jul 25, 2010 at 03:06 UTC | |
|
Re^2: Checking the length of all row elements
by moritz (Cardinal) on Jul 24, 2010 at 21:33 UTC |