peppiv has asked for the wisdom of the Perl Monks concerning the following question:
This works fine.my $sth = $dbh->prepare('SELECT DISTINCT email FROM contacts WHERE gue +st = ? ORDER BY email'); $sth->execute($value) or die $sth->errstr;
my $sth = $dbh->prepare('SELECT DISTINCT email FROM contacts WHERE ? = + ? ORDER BY email'); $sth->execute($value1,$value2) or die $sth->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing a value into a WHERE clause
by VSarkiss (Monsignor) on Jan 26, 2002 at 01:55 UTC | |
|
Re: Passing a value into a WHERE clause
by Fletch (Bishop) on Jan 26, 2002 at 01:59 UTC | |
|
Re: Passing a value into a WHERE clause
by dws (Chancellor) on Jan 26, 2002 at 03:21 UTC | |
by peppiv (Curate) on Jan 28, 2002 at 18:58 UTC | |
|
Re: Passing a value into a WHERE clause
by nandeya (Monk) on Jan 26, 2002 at 04:53 UTC | |
by dws (Chancellor) on Jan 26, 2002 at 07:03 UTC |