in reply to Re: DBI placeholders and like statement
in thread DBI placeholders and like statement
$sth=$dbh->prepare(qq{SELECT title,books.author,notes,books.titlei +d,pubyear,books.authorid FROM books WHERE notes like ? ORDER BY lower(title)}) or die "Couldn't prepare your statement: " . $dbh->errstr; $sth->execute("%$Notes%") or die "Couldn't execute your statement: + " . $sth->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI placeholders and like statement
by stevieb (Canon) on Nov 16, 2024 at 11:13 UTC |