in reply to Re: Find empty tables - sqlite module
in thread Find empty tables - sqlite module
Thanks for clarifying that! The following code works:
my $empty5 = $dbh->selectall_arrayref("SELECT count(item) FROM audio"); foreach my $row (@$empty5) { my ($count) = @$row; if ( $count > 1 ) { print "Processing $count Items\n"; &processItem; } else { print "No Items\n"; &noItems; } print "$count\n"; }
I figured that selectall_arrayref might be the key, but it took a little experimentation to hone it to what I needed.
Thanks again for your answer!
Bubnoff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Find empty tables - sqlite module
by Herkum (Parson) on Jan 01, 2009 at 02:15 UTC |