SQLLDR issue whit leading white spaces. [message #217391] |
Thu, 01 February 2007 23:50 |
puneetsachar
Messages: 97 Registered: March 2005 Location: New Delhi, India
|
Member |
|
|
Hi
I have column who has some leading and traling white spaces
While using SQLLDR the loader trim of thoes spaces.
Please suggests how can i save my characters
E.g
My col have values like ' ABC '
While sqlldr put value in coloumn as ABC
Ctl file
LOAD DATA
CHARACTERSET CSET
APPEND
INTO TABLE NCR_CFS_SN_SWAP
WHEN country_code != ' ' and new_serial_number != ' '
Fields Terminated By "|"
TRAILING NULLCOLS
(
COUNTRY_CODE
,OLD_SERIAL_NUMBER
,INSTANCE_ID
,PRODUCT_ID
,NEW_SERIAL_NUMBER
,PROCESSED_FLAG CONSTANT 'R'
,RESULT_FLAG CONSTANT 'N'
,LAST_UPDATE_LOGIN
,LAST_UPDATE_BY CONSTANT '-1'
,LAST_UPDATE_DATE SYSDATE
,USER_NAME CONSTANT SN_USER_NAME
,JOB_FILENAME CONSTANT SN_FILENAME
,CREATION_DATE SYSDATE
,CREATED_BY CONSTANT '-1'
)
|
|
|
|
|
|
|
|
|