Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    30

    Unanswered: SQL*Loader - insert record number into table

    Hi,

    Anyone know how to insert the record number of the data file line into the target table when SQL*Loading a file ? IE. Table has a extra column called 'record_no', is there anyway to automatically populate this with the data files record number, or does that value have to be in the file already ?

    Thanks,
    Adam

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    RTFM WRT the "SEQUENCE" datatype
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Apr 2003
    Location
    Greenville, SC (USA)
    Posts
    1,155
    Use recnum.... Ex:

    into Table LOADER_table (
    loader_unit Constant 1,
    Record_ID RECNUM,
    ...
    ...

    HTH
    Gregg

Posting Permissions

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