iphony has asked for the wisdom of the Perl Monks concerning the following question:
$dbh = DBI->connect ( "dbi:Oracle:host=$ip;sid=$sd;port=1521", $id, $p +w, {RaiseError => 1, AutoCommit => 0} ); my $sqlexe = $dbh->prepare( $sql ); my @tempdata; my @data; $sqlexe->bind_columns ( undef, \$tempdata[0][0], \$tempdata[0] +[1] ); while ( $sqlexe->fetch() ) { push @{@data}, [ $tempdata[0][0], $tempdata[0][1] ]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl::DBI - column not returned in order of SQL command
by mje (Curate) on Dec 11, 2008 at 08:48 UTC | |
|
Re: Perl::DBI - column not returned in order of SQL command
by iphony (Acolyte) on Dec 11, 2008 at 09:01 UTC | |
by Corion (Patriarch) on Dec 11, 2008 at 09:20 UTC | |
by moritz (Cardinal) on Dec 11, 2008 at 09:26 UTC |