How can I describe all tables in the database through one statement?

前端 未结 8 1952
天命终不由人
天命终不由人 2021-01-31 08:01

Is there any statement that can describe all tables in a database?

Something like this:

describe * from myDB;
8条回答
  •  粉色の甜心
    2021-01-31 08:41

    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';
    

提交回复
热议问题