xxxxxxxxxx
Showing all table:
show tables;
Showing table data:
SELECT
* or column_names
FROM
table_name;
xxxxxxxxxx
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'your_database_name'
AND table_type = 'BASE TABLE';
xxxxxxxxxx
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'BASE TABLE' AND table_schema = 'your_database_name';