Help for this page

Select Code to Download


  1. or download this
    my $colname= 'city';
    my $value=   'Toledo';
    
  2. or download this
    select * from mytable where city = 'Toledo';
    
  3. or download this
    my $sth= $dbh->prepare("select * from mytable where ? = ?");
    ... $sth->execute( $colname, $value );
    
  4. or download this
    select * from mytable where 'city' = 'Toledo';