How to skip fields from text file while importing data into DB
How skip the text file fields while importing data into database table?
The syntax for loading data from file into DB is
load data local infile 'test.txt' into table customer
(customerID,name,msgto,msgfrom);
for example suppose a text file has seven fields:
uniqueid, customerID,name, guid, msgto, msgfrom,tag
customer table structure:
customerID varchar
name varchar
msgto varchar
msgfrom varchar
I would like to skip 'uniqueid', guid and 'tag' fields from text file
and only insert 5 fields into table mentioned above.
Subject
Written By
Posted
How to skip fields from text file while importing data into DB
August 13, 2008 03:29AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.