DEVFYI - Developer Resource - FYI

Can one selectively load only the records that one need? (for DBA

ORACLE Interview Questions and Answers (Part 5)


(Continued from previous question...)

885. Can one selectively load only the records that one need? (for DBA

Look at this example, (01) is the first character, (30:37) are characters 30 to 37:
LOAD DATA
INFILE 'mydata.dat' BADFILE 'mydata.bad' DISCARDFILE 'mydata.dis'
APPEND
INTO TABLE my_selective_table
WHEN (01) <> 'H' and (01) <> 'T' and (30:37) = '19991217'
(
region CONSTANT '31',
service_key POSITION(01:11) INTEGER EXTERNAL,
call_b_no POSITION(12:29) CHAR
)

(Continued on next question...)

Other Interview Questions