in reply to Comparing an array to a DBI table
my $count_sth = $dbh->prepare( 'SELECT count(*) FROM subscription WHERE userid IN (' . join(',', "?" x @compare_array) . ')'); $count_sth->execute(@compare_array); my $count = $count_sth->fetchrow_array;
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Comparing an array to a DBI table
by agoth (Chaplain) on Jul 18, 2001 at 20:16 UTC | |
by adamsj (Hermit) on Jul 19, 2001 at 17:41 UTC |