What module do you use to access the database? I do not know the names of the methods.
DBI, :
my $sth = $dbh->prepare($STMT);
$sth->execute;
my $columns = $sth->{NAME_uc};
while (my $row = $sth->fetch) {
for my $i (0 .. $#$row) {
print "$columns->[$i]: $row->[$i]\n";
}
print "\n";
}
3 : NAME , , NAME_lc , NAME_uc . , NAME .