Share on Google+Share on Google+

Mysql Check

Advertisement
Mysql Check is used to check the existence of table in the database.

Mysql Check

     

Mysql Check is used to check the existence of table in the database.

Understand with Example

The Tutorial illustrate an example from 'Mysql Check'.To understand this example we use CHECK TABLE keyword that show the existence of table in database.In case table is not existing in the database.The Message txt show you the status of table does not exist in database.

Query

CHECK TABLE new_table;

Result

+-----------------+-------+----------+---------------------------------------+
| Table           | Op    | Msg_type | Msg_text                              |
+-----------------+-------+----------+---------------------------------------+
| komal.new_table | check | error    | Table 'komal.new_table' doesn't exist |
+-----------------+-------+----------+---------------------------------------+

Advertisements

Advertisement

Posted on: January 17, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Comments:0