Nik has asked for the wisdom of the Perl Monks concerning the following question:
#================================================ my @row; $sth = $dbh->prepare( 'INSERT INTO games (gamename, gamedesc, gamecoun +ter) VALUES (?, ?, ?)' ); open (FILE, "<../data/games/descriptions.txt") or die $!; while (<FILE>) { chomp; @row = split /\t/; push @row, 0; $sth->execute( @row ); } close (FILE); #================================================
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: loading a .txe into a database
by thor (Priest) on May 03, 2005 at 10:21 UTC | |
by Nik (Initiate) on May 03, 2005 at 10:39 UTC | |
by Nik (Initiate) on May 03, 2005 at 11:04 UTC | |
by polettix (Vicar) on May 03, 2005 at 11:29 UTC |