2. Show Command
Show command can perform Following types task in MySql
1. Show Databases
2. Show Tables
3. Show Create Table
“Show Command display the all record from Mysql”
3. Show Databases
“SHOW DATABASES statement is used to lists the databases on the
MySQL server host”
Syntax /Example:
SHOW DATABASES;
4. Show Databases
“SHOW DATABASES Like statement is used to lists the databases on
the MySQL server host according to Database’s character”
Syntax /Example:
SHOW DATABASES LIKE ‘m%’;
5. Show Tables
“To get a list of the tables in a MySQL database, use
the mysql client tool to connect to the MySQL server and run
the SHOW TABLES command”
Syntax /Example:
SHOW TABLES;
6. Show Tables Like
“SHOW TABLES Like statement is used to lists the TABLES
on the MySQL server host according to Tables’s character”
Syntax /Example:
SHOW TABLES Like “S% ;
7. Show Create Tables
“SHOW CREATE TABLE statement is used to show the create
table statement.”
Syntax:
Show Create Table table_Name;
Example
Show Create Table a2;