xxxxxxxxxx
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'BASE TABLE' AND table_schema = 'your_database_name';
xxxxxxxxxx
Showing all table:
show tables;
Showing table data:
SELECT
* or column_names
FROM
table_name;
xxxxxxxxxx
-- For SQLite
SELECT name as Table_Name FROM
sqlite_master WHERE
type = 'table'
xxxxxxxxxx
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'your_database_name'
AND table_type = 'BASE TABLE';