in reply to DBI Select results confussion
No prepare or execute needed.my $sql_is = qq{ SELECT count(*) FROM files WHERE (geo="$geo" AND lob= +"is" AND country="$key") }; my $count = $dbh->selectrow_array($sql_is); print "$count\n";
Update Oops!! I just realized you're looking for a count. I'm not sure if this will work.
Update Above code edited to correct method calls don't interpolate in strings
was: print "$dbh->selectrow_array($sql_is)\n";
Thanks! chromatic
|
|---|