MySQL Forums
Forum List  »  Newbie

load data local infile & update
Posted by: Adrian Cazan
Date: March 16, 2012 10:50AM

Hello,

Please help with loading a csv into a db.

csv file:
a,1
b,0
c,1
......


is it posible to load this file into a db and to condition by second column.
for example if value 1 then new, if value 0 then old

At the end the db should be like:
a,new
b,old
c,new
.......

Thank you

Options: ReplyQuote


Subject
Written By
Posted
load data local infile & update
March 16, 2012 10:50AM


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.