MySQL Forums
Forum List  »  General

Problem with LOAD DATA of selected fields from input record
Posted by: Yigal Douchan
Date: January 12, 2005 03:02PM

Hi,

I have a table (TBL) with 2 fields only: a,b. I need to load these two fields from an input tab seperated file (in.tab), which contains 3 fields in this order: a,c,b. As I said, I need to load only a & b.

The following commands:

delete if exists from TBL;
load data infile "d:\\in.dat" into table TBL lines terminated by '\n' (a,b);

causes a & c to be loaded into TBL, instead of a & b.

How can I load a & b into TBL from this in.tab file?

Thanks, Yigal

Options: ReplyQuote


Subject
Written By
Posted
Problem with LOAD DATA of selected fields from input record
January 12, 2005 03:02PM


Sorry, you can't reply to this topic. It has been closed.

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.