I am new to perl and getting used to the dbi. Is there any way i can shorten this code when i don't have any parameters to pass to my query
It seems long winded for perl!$sql = "select cols from $tableName where col=constant and col2 =const +ant"; my $sth = $db->prepare($sql); $sth->execute or die "SQL Error: $DBI::errstr\n"; while ($row = $sth->fetchrow_hashref) { #analyse each row
In reply to basic dbi question by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |