You don't need:
my $rowCheckQuery = qq{SELECT color_id FROM color WHERE color=?};
in the loop. Simplify with
my $stmt = qq{SELECT color_id FROM color WHERE color=?};\ my $color_id; foreach my $color (@color){ $color =~ s/^\s+|\s+$//gm; $color_id = $dbh->selectrow_array($stmt, undef, $color); }
In reply to Re: Having issues with DBI
by bradcathey
in thread Having issues with DBI
by zoophagous
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |