in reply to DBI and JOINs
You will have to deal with quotes if your field is not numeric.my @values = ...; # get the values however my $in_parts = join ',', @values; my $sql = "select * from aTable where some_field in ($in_parts)";
There will be a little more Perl coding to sort out the results, but a lot better overall performance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI and JOINs
by OfficeLinebacker (Chaplain) on Sep 30, 2006 at 03:45 UTC |