in reply to Escape characters in DBD CSV

Probably one of your workers has a wrk_surname of O'Reilly or some such. You should let DBI do the quoting, replace your UPDATE loop with something like
my $upd = $dbh->prepare("UPDATE new_entrant SET forename=?,surname=? W +HERE emp_no=?") or die $DBI::errstr; while (my $row = $sth->fetch) { $upd->execute($wrk_forename, $wrk_surname, $wrk_emp_no) or die $DB +I::errstr; } $upd->finish();
BTW is your sep_char really "\\~" i.e. '\~' (the two characters "backslash" and "tilde"?

Replies are listed 'Best First'.
Re^2: Escape characters in DBD CSV
by chacham (Prior) on May 11, 2015 at 15:12 UTC