Do Some Database Stuff - 3

Select statement, multiple row result

$language = ‘perl’;

$language = $dbh->($language);

$sql = qq[

SELECT * FROM compilers];

$sth = $dbh->($sql);

while (@row = $sth->()) {

# some processing, row-by-row

}

Previous slide Next slide Back to first slide View graphic version