Removing the “ - “ from input file

34 Views Asked by At

The input is -> -747585959 And being loaded as -747585959 I just want it to be loaded as 747585959. Used sql*loader for the data loading process.

The “ - “ is the first column and it has “ - “ for all the rows.

1

There are 1 best solutions below

0
Gary_W On

Just simply do this for that column in the control file, which will in effect skip the first character, the dash.

...
,inputdata    NULLIF(inputdata=BLANKS) "SUBSTR(:inputdata, 2)"
...