You can do this:
$sth = $dbh->prepare("SELECT name FROM people WHERE name LIKE ?"); $sth->execute('%foo%');
Just, remember, as I said in chatterbox, to escape the wildcard character '%'.
In reply to Re: DBI Question
by jreades
in thread DBI Question
by dsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |