Is there any statement that can describe all tables in a database?
Something like this:
describe * from myDB;
1 Answer. SHOW TABLES; command is used to view the list of tables in a database.
INFORMATION_SCHEMA.TABLES view allows you to get information about all tables and views within a database.
There is no statement that describe
all tables at once. But you may want to do something like this :
SELECT * FROM information_schema.columns WHERE table_schema = 'db_name';
because the other suggestions made very much mess on the screen or just did not do the trick here is a hack for a small db:
describe table_a; describe table_b; describe table_c;
and so on
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With