, - , , , ( ). , , " SELECT - , , , ,... execute, fetch, fetch,..." :
$sth = $dbh->prepare("SELECT foo, bar FROM table WHERE baz=?");
$sth->execute( $baz );
while ( @row = $sth->fetchrow_array ) {
print "@row\n";
}
Now I do not suggest that programmers really read the documentation (God forbid!), But, given its popularity at the top of the documentation, in the section designed to show you how to use the module, I would suspect that the more - the willow method is somewhat preferable by the author of the module. As for why your hunch is as good as mine.
source
share