MySQL query for table name??

Armitage

Banned
Feb 23, 2001
8,086
0
0
I could do "SHOW TABLES" and then work through the output to see if the table exists. But is there a more direct way to query for the existance of a single table?
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
:thumbsup:
Thanks - in fact you don't need the "FROM dbname" either if you're already using it.
 

WildHorse

Diamond Member
Jun 29, 2003
5,006
0
0
And,
DESC <tableName>;
will display that table's structure, which can be pretty useful.