MySQL Forums
Forum List  »  Oracle

Re: LOAD DATA INFILE OF A WINDOWS CSV FILE
Posted by: Roberto B.
Date: December 26, 2015 10:57AM

I have solved in that way:

LOAD DATA LOCAL INFILE 'C:/Users/Roberto/Desktop/temp/searchresult.csv'
INTO TABLE ltable
FIELDS TERMINATED BY '\r\n'
(@FILEADDRESS)
SET FILEADDRESS = LEFT(@FILEADDRESS, LENGTH(@FILEADDRESS)-1);

with SET section but i don't know if there's more elegant and performant way.

Options: ReplyQuote


Subject
Views
Written By
Posted
3629
December 26, 2015 05:56AM
Re: LOAD DATA INFILE OF A WINDOWS CSV FILE
986
December 26, 2015 10:57AM


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.