in reply to Elegant way to turn array of values into SQL "where" clause
I'm clueless as to whether DBIx::Abstract provides a means for doing this sort of statement construction. If not, that's sad, but you should just be able to fall back on straight DBI calls whenever you want/need them.my $sql = "update table set Y=0 where X in (" . join( ',', map { '?' } @ARRAY ) . ")"; my $sth = $dbh->prepare( $sql ); $sth->execute( @ARRAY );
|
|---|