in reply to Perl DBI to MySQL LOAD_FILE
You don't make it easy to help, since you do not share the content of the file, nor the error message, nor your full DBI statement, but it sure looks like you are not using placeholders and bind values. This is what's getting you into the quoting problem addressed by stevieb.
Try something like:
my $res = $dbh->do('UPDATE artistsfull SET page=LOAD_FILE( ? ) where c +ode= ?', {}, $infile, $code);
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl DBI to MySQL LOAD_FILE
by Hammer2001 (Novice) on Jan 05, 2017 at 01:36 UTC | |
by 1nickt (Canon) on Jan 05, 2017 at 02:17 UTC | |
by Marshall (Canon) on Jan 05, 2017 at 03:46 UTC |