DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Question on SQL Loader

  1. #1
    Join Date
    Dec 1999
    Posts
    217

    Question on SQL Loader

    I have a question on SQL Loader. When loading data using the 'REPLACE' option do the values have to be in the same order as the table definition. For Instance,

    create table emp
    (
    ekey char(3) not null,
    ename char(30),
    dept char(30)
    )

    The SQL Loader statement:
    LOAD Data
    INFILE '/home/data/emp.dat'
    REPLACE
    into table emp(
    ecode FILLER position(3:3) char(1),
    e_reason FILLER position(4:5) char(2),
    ekey
    "(ecode||e_reason)"
    ename char(30),
    dept char(30)
    )

    Your input is highly appreciated.

    -Chintz

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    No, they do not have to be in the same order as there are columns in a table definition.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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