Jump to content

Archived

This topic is now archived and is closed to further replies.

alecjw

Table exists

Recommended Posts

Is there a MySQL query which returns whether a table exists or not?

Share this post


Link to post
Share on other sites
And you can add a "LIKE" clause to show tables as well, and check for any rows returned.

Share this post


Link to post
Share on other sites
So would that query return array("table1_name","table2_name") etc?

Share this post


Link to post
Share on other sites
If you ask for an array back, then yes... it will return a recordset, with a single column.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.