If I substitute NAME for SCALE then I get an array of column names as expected. However, using SCALE I just get an array full of zeros. I wonder what the problem with this is? Also, is there a better way of doing this?$sth=$dbh->prepare('SELECT * FROM userReports WHERE 1=0'); $sth->execute(); my $flh=$sth->{SCALE}; my @lengths=@{$flh}; print "@lengths";
In reply to field lengths of database tables by tomgracey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |