Help for this page

Select Code to Download


  1. or download this
    my $column = $sth->fetchrow_array();
    
  2. or download this
    my ($column) = $sth->fetchrow_array();
    
  3. or download this
    my $count = @array; # gets the array size
    my ($first) = @array # gets the first item
    
  4. or download this
    $dbh->trace(2);
    my $sth=$dbh->prepare(qq{SELECT name from emp where ID = ?});
    $sth->execute(qq("ABC123"));
    $dbh->trace(0);
    
  5. or download this
    SELECT name from emp where ID = "'ABC123'";