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();
In reply to Re: DBI scanning of column definitions
by gam3
in thread DBI scanning of column definitions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |