in reply to more of SQL::Abstract
use SQL::Abstract; my $sql = SQL::Abstract->new; my @where = ( {city => 'Jerusalem', sale =>'1' }, {city => 'Jerusalem', rent =>'1' } ); my($stmt, @bind) = $sql->where(\@where); print "$stmt BOUND WITH @bind\n";
WHERE ( ( city = ? AND sale = ? ) OR ( city = ? AND rent = ? ) ) BOUND WITH Jerusalem 1 Jerusalem 1
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|