my $dbh = DBI->connect(...); my $st = $dbh->prepare('select * from ...'); $hash_ref = $st->fetchrow_hashref; my $types = $st->{TYPE}; for my $type (@$types) { print "$type -- "; print [$dbh->type_info($type)]->[0]->{LOCAL_TYPE_NAME}, "\n"; print "\n"; } $st->finish(); $dbh->disconnect();