Re: Using SQL*Loader

From: Robert W. Swisshelm <swisshelm_at_lilly.com>
Date: 1996/06/18
Message-ID: <31C699D2.70C5_at_lilly.com>#1/1


Carol Kilner wrote:
-

You can use constants.

LOAD DATA
INFILE myfile.dat
INTO TABLE sales when (1:6) = 'SLSMNO'
( id CONSTANT 1,
  description POSITION (12:31) VARCHAR) INTO TABLE terr WHEN (1:4) = 'TERR'
( id CONSTANT 2,
  description POSITION (12:31) VARCHAR)

If what you really wanted was that the TERR1 record puts a 1 into the ID field and the TERR2 record puts a 2 into ID, replace the CONSTANT clause with POSITION(5:5).

I hope this helps.

-- 
Bob Swisshelm
Eli Lilly and Company
swisshelm_at_lilly.com
Received on Tue Jun 18 1996 - 00:00:00 CEST

Original text of this message