如何通过一条语句描述数据库中的所有表? [英] How can I describe all tables in the database through one statement?

查看:54
本文介绍了如何通过一条语句描述数据库中的所有表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有可以描述数据库中所有表的语句?

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

类似这样的东西:

describe * from myDB;

推荐答案

没有声明立即describe所有表.但是您可能想做这样的事情:

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

这篇关于如何通过一条语句描述数据库中的所有表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆