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

Thread: QUEATION ABOUT SQLLOADER

  1. #1
    Join Date
    Jan 2001
    Posts
    20

    Question

    If I am loading a datafile using SQL*LOADER and I want to default a column to the date the record was loaded can this be done without setting the defaults of the table? How do I specify this in the control file?




    datafile ex.

    abcdefgh



    table abc

    col1 col2 col3
    abcd 12-JAN-01 efgh



    [Edited by FRANK on 01-12-2001 at 11:44 AM]

  2. #2
    Join Date
    Aug 2000
    Posts
    163
    Your control file would be something like this;
    LOAD DATA
    APPEND
    INTO /TABLE NAME/
    COL1 abcd
    COL2 sysdate
    COL3 efgh
    sysdate will populate your column correctly.


  3. #3
    Join Date
    Jan 2001
    Posts
    36
    You can include SQL code in your ctl file. You would assign
    SYSDATE to the column - Check the server utilities guide for your version of Oracle - Sqlloader (Applying SQL operators to fields).
    Post your ctl file if you still have problems.


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