Results 1 to 3 of 3

Thread: SQL*Loader

  1. #1
    Join Date
    Nov 2003
    Location
    Bangalore, India
    Posts
    3

    Unanswered: SQL*Loader

    Can we use select statements in SQL*LOADER to insert some column values from other tables?

  2. #2
    Join Date
    Nov 2002
    Posts
    833
    Why not use something like this

    insert into <table1> (<col1, ..., col<nn>) select col1, ..., col<nn> from <table2>;

    for using sqlldr you need the pipe the data into a flat file, customize a ctl file and then do the loading ... much more work

  3. #3
    Join Date
    Nov 2003
    Location
    Bangalore, India
    Posts
    3
    Originally posted by osy45
    ---------------------------------------------------------------------------------
    Basically I have a flat file from which I am loading into a table through SQL*loader. While populating the data one of the column need to be populated from another table.

    the question is whether I can use select statement in the .ctl file?

    -----------------------------------------------------------------------

    Why not use something like this

    insert into <table1> (<col1, ..., col<nn>) select col1, ..., col<nn> from <table2>;

    for using sqlldr you need the pipe the data into a flat file, customize a ctl file and then do the loading ... much more work

Posting Permissions

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