테이블 구조
col , col2, col3, col4 varchar(10)
time1 timestamp(6)
데이터 파일
1,2,
콘트롤 파일
load data
infile test.dar
append
into table tmp_table
fields terminated ','
trailing nullcols
(
col1, --잘 들어감
col2 "(select :col1 frome dual)" , --잘 들어감
col3 constant '상수값' , -- 잘 들어감
col4 , --질문1
time1 --질문2
)
col2는 외부데이터가 있어서 col1로 서브쿼리가 가능했습니다
col3은 외부데이터에는 없지만 constant로 처리했습니다
질문!!!
1. col4는 외부데이터에는 없지만 col2처럼 서브쿼리가 가능할까요??
2. time1은 외부데이터가 없지만 현재시간으로 처리가 가능할까요?
오류케이스
time1 timestamsp
time1 sysdate
데이터가 있을때 titme1 "to_timestamp(to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS'))" 이건 가능했어요
핸드폰으로 질문하는거라 성심껏 질문이 어렵네요ㅠㅠ