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