Take the safe option and assign the SQL query to a string before using it. The placeholders are ok with this as well. my $sql = qq(select * from testami where ? = ? and ? = ?); $sth = $dbh -> prepare($sql); $sth -> execute($field1, $value1, $field2, $value2); #$sth -> execute(); Hope you didn't forget to uncomment this one! Joni
- ? embed scalars in the sql Francesco Scaglioni
- RE: ? embed scalars in the sql Moon, John
- RE: ? embed scalars in the sql Francesco Scaglioni
- Re: ? embed scalars in the sql Greg Jetter
- Re: ? embed scalars in the sql Francesco Scaglioni
- Re: ? embed scalars in the sql Timothy Kimball
- Re: Re: ? embed scalars in the sql Mark Bergeron
- RE: ? embed scalars in the sql mark crowe (JIC)
- RE: ? embed scalars in the sql Francesco Scaglioni
- RE: ? embed scalars in the sql Curtis Poe
- RE: ? embed scalars in the sql PURMONEN, Joni
- RE: ? embed scalars in the sql Francesco Scaglioni
- RE: ? embed scalars in the sql mark crowe (JIC)
- Re[2]: ? embed scalars in the sql Maxim Berlin
- RE: Re[2]: ? embed scalars in the sql mark crowe (JIC)
- Re[4]: ? embed scalars in the sql Maxim Berlin