mysql如何查询表信息

首页 编程分享 DB丨SERVICE 正文

V 转载 编程分享 2020-09-02 22:49:06

简介 mysql查询表信息的方法:执行【select * from tables where table_schema = "db_name";】命令可以查看数据库中所有表的信息。


具体方法如下:

(视频教程推荐:)

查询一个里面所有表的信息:

use information_scheam;
select * from tables where table_schema = "db_name";

查询单个表的信息:

use information_scheam;
select * from tables where table_schema = "db_name" and table_name = "table_name1";

(相关推荐:)

查询一张表的所有字段信息:

use db_name;
show full columns from table_name1;
show full columns from table_name2;

转载链接:http://www.php.cn//mysql-tutorials-459619.html


Tags:


本篇评论 —— 揽流光,涤眉霜,清露烈酒一口话苍茫。


    声明:参照站内规则,不文明言论将会删除,谢谢合作。


      最新评论




ABOUT ME

Blogger:袅袅牧童 | Arkin

Ido:PHP攻城狮

WeChat:nnmutong

Email:nnmutong@icloud.com

标签云