in reply to Re: Best Perlish way to test if a mysql table exists?
in thread Best Perlish way to test if a mysql table exists?
eval is only necessary if DBI's RaiseError flag was set on connection to the database; otherwise $dbh->err must be checked. This should probably be done with a query such as SELECT 1 FROM table WHERE 0 which would always succeed but would never return any results, provided the table exists.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best Perlish way to test if a mysql table exists?
by punch_card_don (Curate) on Jan 31, 2005 at 01:14 UTC | |
by Aristotle (Chancellor) on Jan 31, 2005 at 02:25 UTC | |
by blokhead (Monsignor) on Jan 31, 2005 at 05:35 UTC | |
by Aristotle (Chancellor) on Jan 31, 2005 at 06:24 UTC |