Otazka k DBI
Jan Kasprzak
kas na informatics.muni.cz
Neděle Leden 17 15:48:04 MET 1999
Zdravim,
Muzu v DBI udelat tohle?
...
$sth1 = $dbh->prepare('SELECT * FROM TABLE1');
while (($ref = $sth->fetchrow_hashref)) {
my $sth2 = $dbh->prepare(nejaky jiny select);
$ref2 = $sth2->fetchrow_hashref;
...
$sth2->finish;
}
...
Cili muzu uprostred "rozecteneho" selectu delat jine SQL prikazy?
Nebo musim nejprve $sth1 zpracovat, a pak az delat dalsi selecty?
-Yenya
--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz> http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz 0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\ Czech Linux Homepage: http://www.linux.cz/ ///
/// Can you say "ignored email" three times quickly while chewing \\\
// on an apple? --Linus Torvalds \\
Další informace o konferenci Perl