RE: Column headings question
"Louis Proyect" <[email protected]> Wed, 7 Oct 2009 14:24:58 -0400
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <2690DBBEF4364D45B0E834208CDD712E0300B315@CUIT-EXCHANGE2.ais.columbia.edu> |
> Something like
>
> @res = $dbh->ct_sql($cmd, undef, 1);
> foreach my $row (@res) {
> foreach my $col (keys(%$row)) {
> print "$col: $row->{$col}\n";
> }
> }
This worked great, but for some reason the columns/data did not come out
in the order they originated in the select statement in the stored
procedure. All I need is a fix on that.