if( $time ) { $sql.= ' AND time = ?'; push @args, $time; } if( $date ) { $sql.= ' AND date = ?'; push @args, $date; } $sth->execute( @args );
In reply to Re: Managing Dynamic SQL
by BUU
in thread Managing Dynamic SQL
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |