in reply to Re: Problem uploading 'large' CSV file using DBI
in thread Problem uploading 'large' CSV file using DBI
#------------------------------ db operations sub execute_it { my ($dbh, $stmt) = @_; print "Content-type: text/html\n\n"; print "Here1".Dumper ($dbh, $stmt); $sth = $dbh->prepare($stmt); $sth->execute(); return ($sth); } Content-type: text/html Here1 $VAR1 = bless( {}, 'DBI::db' ); $VAR2 = 'LOAD DATA LOCAL INFILE "../file.csv" INTO TABLE table_name FI +ELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY """" LINES TERMINATED B +Y "\r" IGNORE 1 LINES '; sub close_db { my ($dbh, $sth) = shift; if ($sth) { $sth->finish(); $dbh->disconnect(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Problem uploading 'large' CSV file using DBI
by diotalevi (Canon) on Jul 27, 2005 at 03:49 UTC | |
by Tatnall (Beadle) on Jul 27, 2005 at 14:57 UTC |