in reply to selectrow_array() confusion
| Never tried the database handle selectrow_array() method, but | |
| we know the statement handle fetchrow_array() works: | |
| $dbh = DBI->connect($dsn, $user, $passwd); | |
| $sql = "select min(thing) as itsmin, max(thing) as itsmax from images where foo like 'bar%'"; | |
| $sth = $dbh->prepare($sql); | |
| $sth->execute; | |
| while ( @row = $sth->fetchrow_array() ) { | |
| print @row . "\n"; | |
| } | |
| Check the CPAN DBI doc. | |
|
|---|