I'm using the following to batch insert csv
data to a mysql
table:
LOAD DATA LOCAL INFILE '' REPLACE into table persons
(firstname, lastname, age)
persons.csv:
#first,last,age
john,doe,32
jane,done,22
database table:
firstname, lastname, age, birthday
Question: how can I replace existing rows, but KEEP the birthday
row if already set?
I using as above, the birthday
row will always contain NULL
values, no matter if a value existed in that field before insertion.