Thread Perl , SQL und Datenbank
(13 answers)
Opened by joelsok at 2010-07-15 16:22
hallo Topeg,
was macht eingentlich diese Code-Fragment: while(my $row=$sth_a->fetchrow_hashref) { my @names=keys(%$row); my $keys=join(', ',@names); my $values=join(', ',map{'?'}@names); $dbh_b->do("INSERT INTO Adresse ($keys) VALUES ($values)",undef,@$row{@names}); } danke |