To find out the current type of a table, use the SHOW TABLE STATUS statement or SHOW CREATE TABLE : Show « Command MySQL « SQL / MySQL

To find out the current type of a table, use the SHOW TABLE STATUS statement or SHOW CREATE TABLE

mysql> CREATE TABLE mytbl
    -> (
    ->     i INT,
    ->     c CHAR(1)
    -> );
Query OK, 0 rows affected (0.00 sec)

*************************** 1. row ***************************
           Name: mytbl
         Engine: MyISAM
        Version: 10
     Row_format: Fixed
           Rows: 0
 Avg_row_length: 0
    Data_length: 0
Max_data_length: 1970324836974591
   Index_length: 1024
      Data_free: 0
 Auto_increment: NULL
    Create_time: 2011-10-03 14:03:39
    Update_time: 2011-10-03 14:03:39
     Check_time: NULL
      Collation: latin1_swedish_ci
       Checksum: NULL
1 row in set (0.00 sec)

mysql> drop table mytbl;
Query OK, 0 rows affected (0.00 sec)


Related examples in the same category

1.Determine which functions the running version of MySQL supports with the SQL command SHOW VARIABLES.
2.Determine the computer's time zone with SHOW_VARIABLES
3.The SHOW INDEX statement
5.SHOW TABLES with LIKE clause
6.Ask the server to report the number of connections it's received and its uptime
7.Using SHOW and DESCRIBE to Review Table Structures
8.Returns information about all indexes of the table
9.Show columns command
10.Using the SHOW CREATE TABLE statement
11.Using the SHOW VARIABLES Statement to Retrieve Server System Variable Settings
12.Returning now to the syntax, you can see that a basic SHOW STATUS statement is very straightforward
13.SHOW STATUS statement returns all those status variables whose name contains the string select:
14.Have the root user show the change.
15.Using Show Create Table command to check table
18.Using Database-Related SHOW Statements
19.SHOW DATABASE statement
20.Using Table-Related SHOW Statements
21.This SHOW statement returns more than these columns
22.Add a LIKE clause at the end of a SHOW statement to display information only for column names that match a given pattern
23.To determine the tables a particular database contains, use SHOW TABLES:
24.SHOW DATABASES and SHOW TABLES can each take a LIKE 'pattern' clause
25.Using the SUM function, make a report that shows the total sales numbers in each quarter.
26.Show warnings
27.Show status for a procedure
28.Show create procedure
29.Specify a value in the LIKE clause that includes the string query
30.Listing Existing Tables in a Database with SHOW TABLES
31.Returns a list of all databases
32.Testing Whether a Database Exists
33.Listing Database or Table Names
34.The _ character means "match any character" in pattern strings
35.Determining Existing SPs
36.Monitoring the MySQL Server
37.get the thread identity
38.Returns a list of all tables in dbname
39.Testing Whether a Table Exists
40.Getting Table Structure Information