Help for this page

Select Code to Download


  1. or download this
    my $ST = $DB->prepare("select foo, bar from my_table "
                         ."where col1 < '$abc' or (col1 > '$def' and col3 
    +< $fgh)");
    $ST->execute();
    
  2. or download this
    my $ST = $DB->prepare("select foo, bar from table where col1 < ? or (c
    +ol1 > ? and col3 < ?)");
    $ST->execute($abc, $def, $fgh);
    
  3. or download this
    select foo, bar from my_table where col1 < '';
    drop table my_table
    ; --' or (col1 > 'def_val' and col3 < fgh_val)