AlbertAguirre
Programmer
I am selecting 2 columns in my SQL. I only know how to use fetchrow.
How do i tell perl to get the second table column specified in my sql?
Heres my code:
$p_detSql=$dbh1->prepare ("SELECT firstname, lastname FROM tNetworkDet");
$p_detSql->execute();
$lastname=$p_detSql->fetchrow(); <-- doesnt work
How do I get lastname?
How do i tell perl to get the second table column specified in my sql?
Heres my code:
$p_detSql=$dbh1->prepare ("SELECT firstname, lastname FROM tNetworkDet");
$p_detSql->execute();
$lastname=$p_detSql->fetchrow(); <-- doesnt work
How do I get lastname?