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