Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

RE: Re: Reading from a file and writing the content into a database

by chromatic (Archbishop)
on Mar 31, 2000 at 22:32 UTC ( [id://6604] : note . print w/replies, xml ) Need Help??


in reply to Re: Reading from a file and writing the content into a database
in thread Reading from a file and writing the content into a database

my $sth = $dbh->prepare(<<SQL) or die "Can't prepare: ", $dbh->errstr; insert into data (data_1, data_2) values (?, ?) SQL
You can do that with a here doc? that's just amazing. How in the world did you figure that out?
  • Comment on RE: Re: Reading from a file and writing the content into a database
  • Download Code

Replies are listed 'Best First'.
RE: RE: Re: Reading from a file and writing the content into a database
by btrott (Parson) on Mar 31, 2000 at 23:03 UTC