use DBI; my $dbh = DBI->connect("dbi:ODBC:PRDB") || die "Can't connect to $data +_source: $DBI::errstr"; my $sth = $dbh->prepare( q{SELECT * FROM $table}) || die "Can't prepare statement: $DBI::errstr"; my $rc = $sth->execute(); @test = $sth->fetchrow_array; .....Some display section here. $dbh->disconnect;
In reply to Dynamically passing table names to a sql query(DBI) by brajan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |