isn't valid SQL. Use a place holder:select username from user where address=foo@ebi-llc.com
my $sql = qq(select username from user where address=?); my $sth1 = $dbh->prepare($sql); $sth1 -> execute ($address);
Abigail
In reply to Re: Can't pass email address in SQL select statement
by Abigail-II
in thread Can't pass email address in SQL select statement
by davart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |