Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datatype/filtering question in control file sql*loader

Status
Not open for further replies.

crsdev

Programmer
Sep 29, 2006
96
US
Hello Friends,
Can someone please help me with the function of replacing a string in control file of sql*loader.
example:
if the string in the .txt file is "null"
i want to replace that in the table with value (null)

Thanks in advance.
 

Check out the NULLIF option in SQL*Loader:

Code:
LOAD DATA
  INFILE 'emp.dat'
  INTO TABLE emp
 (empno 
 ,ename
 ,job          NULLIF job='Null'  
 ,mgr  
 ,sal  
 ,comm 
 ,deptno
  )
[3eyes]



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top