How to ignore a column in loader
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: How to ignore a column in loader

  1. #1
    Join Date
    Jun 2002
    Location
    Denver
    Posts
    54
    Can anyone give me syntax on how to ignore a data column while loading data ?

    Here's the part of control file :

    LOAD DATA
    INTO TABLE tablename
    APPEND
    TRAILING NULLCOLS
    (
    COUNTRY_CODE CHAR TERMINATED BY X'09',
    FROM_MAILCODE CHAR TERMINATED BY X'09',
    TO_MAILCODE CHAR TERMINATED BY X'09',
    DEST_CODE CHAR TERMINATED BY X'09'
    )

    Here's the data format, tab separated fields. I want to ignore the country description while loading :

    AR Argentinia 2451 2451 ROS
    AR Argentinia 2500 2500 COR
    AR Argentinia 2550 2550 ROS

    Thanks in advance.

  2. #2
    Join Date
    Sep 2002
    Posts
    1
    Hi,

    Try using column POSITION to ignore the field.

    Thanks.
    Ramki

  3. #3
    Join Date
    Jun 2002
    Location
    Denver
    Posts
    54
    Unfortunately column lengths are variable.

  4. #4
    Join Date
    Dec 2000
    Posts
    126
    you can use FILLER to suppress column


    LOAD DATA
    INTO TABLE tablename
    APPEND
    TRAILING NULLCOLS
    (
    COUNTRY_CODE CHAR TERMINATED BY X'09',
    FROM_MAILCODE CHAR TERMINATED BY X'09' FILLER, <<<<<<<
    TO_MAILCODE CHAR TERMINATED BY X'09',
    DEST_CODE CHAR TERMINATED BY X'09'
    )

    Here's the data format, tab separated fields. I want to ignore the country description while loading :

    AR Argentinia 2451 2451 ROS
    AR Argentinia 2500 2500 COR
    AR Argentinia 2550 2550 ROS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width