mysql show tables content code example

Example 1: mysql show all tables

show tables;

Example 2: mysql show data from table

mysql> SELECT * FROM [table name];

Example 3: print all records of table in mysql

SELECT * FROM TABLE_NAME;
OR
SELECT column_name_1, column_name_2 FROM TABLE_NAME;

Example 4: show table mysql

# First, select your database
USE yourDb;

# Then, simply
SHOW TABLES;

Example 5: show tables mysql

Press CTRL+C to copy SHOW [EXTENDED] [FULL] TABLES
    [{FROM | IN} db_name]
    [LIKE 'pattern' | WHERE expr]

Tags:

Sql Example