in reply to Re: How to query mysql database schema with DBI
in thread How to query mysql database schema with DBI
$dbh = DBI->connect($db_datasource, $db_user_name, $db_password) or di +e("Could not connect!"); $sql= "SHOW CREATE TABLE responses"; my $command = $dbh->prepare($sql) or die("Could not prepare!"); $command->execute() or die("Could not create!"); while ( my @row = $command->fetchrow_array( ) ) { print "@row\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to query mysql database schema with DBI
by punch_card_don (Curate) on Oct 04, 2004 at 20:52 UTC | |
by shemp (Deacon) on Oct 04, 2004 at 22:50 UTC | |
by dragonchild (Archbishop) on Oct 04, 2004 at 21:08 UTC | |
|
Re^3: How to query mysql database schema with DBI
by punch_card_don (Curate) on Oct 04, 2004 at 21:20 UTC |