I'm trying to load a data file with each record containing 3 fields (col_A,
col_B, col_C) using SQL*Loader.
The table in the database, however, contains 2 fields only (field1, field2)
What's the syntax for the loader script to load:
col_A into field1,
col_C in field2 and
skip col_B?
Any suggestions? Thanks in advance.
Christoph Meyer
---
Please remove [nospam] before replying.
Doug
ex
APPEND
INTO TABLE Account
(bank_nbr POSITION(01:03) INTEGER EXTERNAL
,product_type_cd POSITION(04:05) CHAR
,account_nbr POSITION(06:15) INTEGER EXTERNAL
)
APPEND
INTO TABLE Account
(bank_nbr POSITION(01:03) INTEGER EXTERNAL
,account_nbr POSITION(06:15) INTEGER EXTERNAL
)
This shuld work fine without using temporary tables as long as you can
make the files fixed length.
Bill
<klin...@epix.net> wrote in message news:38867FB2...@epix.net...
INTO TABLE MYTEST
(
col1 CHAR(20),
col2 FILLER CHAR(30),
col3 CHAR(20)
)
col1 and col3 must exist in the table but col2 is ignored.
Jeff Price wrote:
> What if the data is delimited, not fixed?
>
Available in 8i.
Typically people use "cut" or equivalent in Unix as a pre-process to do
the same in lower versions.
HTH
--
===========================================
Connor McDonald
"These views mine, no-one elses etc etc"
connor_...@yahoo.com
"Some days you're the pigeon, and some days you're the statue."