DB table exists ?
| From: | Matthias H. Risse | Date: | Wed, 12 May 2004 08:54:14 +0000 |
| Subject: | DB table exists ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12430@lists.php.net to get a copy of this message | ||
Hi,
I simple need to ask my database if a specific
table with its name as the key exists? is there
any portable solution to this?
i though about SHOW and iterating over the resultset or
SELECT foo FROM bar and check if its an errorobject,
but isnt there a simple and cleaner SQL query or PEAR::DB method
for this?
I tried the list-archives at ASPN, but didnt work out.
Btw: Is there
Yours,
M