
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
What information does SHOW TABLE DOES display in MySQL
The SHOW TABLE STATUS in MySQL displays the NAME, ENGINE, VERSION, ROWS, CHECKSUM, etc of a table −
Example
Let us first create a table. Here, we are using the MyISAM engine. The query to create a table is as follows −
mysql> create table Post_Demo -> ( -> PostId int, -> PostName varchar(100), -> PostDate datetime, -> PRIMARY KEY(PostId) -> )ENGINE = MyISAM; Query OK, 0 rows affected (0.28 sec)
Now you can check the table status using SHOW TABLE command. The query is as follows −
mysql> show table status where Name = 'Post_Demo'\G
Output
*************************** 1. row *************************** Name: post_demo Engine: MyISAM Version: 10 Row_format: Dynamic Rows: 0 Avg_row_length: 0 Data_length: 0 Max_data_length: 281474976710655 Index_length: 1024 Data_free: 0 Auto_increment: 1 Create_time: 2019-02-12 16:27:26 Update_time: 2019-02-12 16:27:26 Check_time: NULL Collation: utf8_general_ci Checksum: NULL Create_options: Comment: 1 row in set (0.00 sec)
- Related Articles
- Display MySQL Database, Table, and Column Information
- What does 'show processlist' command do in MySQL?
- Does MySQL support table inheritance?
- Why does div display: table-row ignore margin?
- What does it mean by select 1 from MySQL table?
- What does /* in MySQL means?
- How does Security Information Management Works in information security?
- How does Information security work?
- How does DES works in Information Security?
- How does Steganography works in Information Security?
- Does MySQL DROP TABLE completely remove the table or just the structure?
- What does INT(7) in MySQL mean?
- What does select @@identity do in MySQL?
- MySQL SELECT from table A that does not exist in table B using JOINS?
- How to select from MySQL table A that does not exist in table B?

Advertisements