Home » RDBMS Server » Server Utilities » SQL Loader
SQL Loader [message #70567] Mon, 01 July 2002 10:08 Go to next message
sonia
Messages: 22
Registered: March 2001
Junior Member
I'm trying to do both a truncate and insert into a table. CAn someone show me the syntax for the control file to do this.

Thanks
Re: SQL Loader [message #70568 is a reply to message #70567] Mon, 01 July 2002 10:31 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
LOAD DATA
INFILE *
TRUNCATE
INTO TABLE xxx_Table_name
........
..........
..............
Re: SQL Loader [message #70570 is a reply to message #70567] Mon, 01 July 2002 13:02 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
i beleive the same syntax will do that.
first it will truncate the table and insertst the data

LOAD DATA
INFILE *
TRUNCATE
INTO TABLE xxx_Table_name
...
...
Previous Topic: Re: Invalid Alert ID error
Next Topic: incremental export says: EXP-00008: ORACLE error 1438 encountered
Goto Forum:
  


Current Time: Tue May 07 10:13:20 CDT 2024