in reply to Perl::DBI - column not returned in order of SQL command
my $dbh = DBI->connect ( "dbi:Oracle:host=$ip;sid=$sd;port=1521", $id, + $pw, {RaiseError => 1, AutoCommit => 0} ); $dbh->{LongTruncOk} = 1; my $sqlexe = $dbh->prepare( $sql ); $sqlexe->execute(); $sqlexe->bind_columns ( undef, \$tempdata[0], \$tempdata[1], \$tempdat +a[2], \$tempdata[3], \$tempdata[4] ); while ( $sqlexe->fetch() ) { push @{@data}, [ $tempdata[0], $tempdata[1], $tempdata[2], $tempda +ta[3], $tempdata[4] ]; } $sqlexe->finish(); $dbh->disconnect();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl::DBI - column not returned in order of SQL command
by Corion (Patriarch) on Dec 11, 2008 at 09:20 UTC | |
|
Re^2: Perl::DBI - column not returned in order of SQL command
by moritz (Cardinal) on Dec 11, 2008 at 09:26 UTC |