in reply to Reading a MySQL table into an array
It seems to me that you are :
A simpler solution should be:
my $tables = $dbh->selectcol_arrayref("SHOW_TABLES") or die $DBI::errstr;
This one, and many more are shown in DBI Recipes.
Be sure to understand the various idioms before using them. One introduction to what to get from a database is shown in The fine art of database programming.
And, don't forget to "use strict" and warnings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading a MySQL table into an array
by rvosa (Curate) on Jul 30, 2005 at 15:25 UTC | |
by davies (Monsignor) on Jul 30, 2005 at 15:41 UTC | |
|
Re^2: Reading a MySQL table into an array
by davies (Monsignor) on Jul 30, 2005 at 15:23 UTC |