in reply to Re^2: confused about reading from database using an array
in thread confused about reading from database using an array
Where $dbh is your DBI database handle. See also map , join and DBI's quote() method.my $sql = "SELECT id, order_num, state FROM orders WHERE names IN (".j +oin(",",map($dbh->quote($_), @names)).")";
|
|---|