in reply to Re: sql select with array
in thread sql select with array
And then you've got a statement handle to get your data from.. I don't know if it's more efficient, but it seems a bit more readable to me.$sth = $dbh->prepare("SELECT " . '? ' x $#selector . "FROM people WHER +E (fornavn LIKE '%$search%') or (eternavn LIKE '%$search%') or (cpr L +IKE '%$search%'", \%attr); #dunno if you can do the \%attr part... $sth->execute(@selector);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: sql select with array
by busunsl (Vicar) on Oct 23, 2001 at 10:09 UTC |