|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have table
t(col1, col2,col3) col2 may or may not contain values....based on which i have to insert.if i give an extra tabspace(if its null) in dat file col3 value gets inserted in col2. how do i do it.My control file looks like load data infile x.dat replace into table t fields terminated by X'9' optionally enclosed by '"' trailing nullcols (col1 decimal external, col2 char, col3 decimal external) i cant use filler.what r the the other options... thanks in advance Last edited by ushaiyer : October 25th, 2004 at 06:08 AM. Reason: URGENT |
|
#2
|
|||
|
|||
|
try this
load data infile x.dat replace into table t (field1 POSITION(a:b), POSITION(c:d),....) bye Quote:
|
|
#3
|
|||
|
|||
|
load data
infile x.dat replace into table t (field1 POSITION(a:b),field2 POSITION(c:d)....) Quote:
|
|
#4
|
|||
|
|||
|
Sql Loader
thank you...
but then i can't use position(a:b) as my .dat is of variable length..... i am new to sql loader.... could u plz guide me reg this? |
|
#5
|
|||
|
|||
|
Quote:
This link may help http://zuse.esnig.cifom.ch/database/doc_oracle/Oracle901_Linux/server.901/a90192/ch10.htm |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > SQL LOADER-check for null |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|