Your $key_sel is not quoted.
Use $dbh->quote($key_sel) before executing, or better yet, use placeholders.
my $cmd = "select * from info where key = ?"; my $sth = $dbh->prepare($cmd); $sth->execute($key_sel);
For an explanation of your error, see "common pitfalls" in this tutorial.
_ _ _ _ (_|| | |(_|>< _|
In reply to Re: DBD::SQLite select syntax problem
by gmax
in thread DBD::SQLite select syntax problem
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |