Re: Getting all names in mdb
- From: ron@xxxxxxxxxxxxx (Ron Savage)
- Date: Sun, 09 Dec 2007 16:32:29 +1100
On Fri, 2007-12-07 at 11:19 +0900, 田口 浩 wrote:
Hi
my $dbh = DBI->connect("dbi:ODBC:test", "", "",
{RaiseError => 1, AutoCommit => 0, LongReadLen => 409600})
or die "$DBI::errstr";
Anyone will teach me how to get all names of tables
(in test.mdb)?
$sth = $dbh -> table_info(undef, undef, '%', 'TABLE');
while ($data = $sth -> fetchrow_hashref() )
{
$table_name = $$data{'TABLE_NAME'};
....
}
or
install DBIx::Admin::TableInfo.
--
Ron Savage
ron@xxxxxxxxxxxxx
http://savage.net.au/index.html
.
- Follow-Ups:
- RE: Getting all names in mdb
- From: h-taguchi
- RE: Getting all names in mdb
- References:
- Getting all names in mdb
- From: h-taguchi
- Getting all names in mdb
- Prev by Date: Re: Connecting to Database
- Next by Date: RE: Getting all names in mdb
- Previous by thread: RE: Getting all names in mdb
- Next by thread: RE: Getting all names in mdb
- Index(es):