您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

MySql 查询数据库中所有表

bubuko 2022/1/25 20:02:14 mysql 字数 673 阅读 625 来源 http://www.bubuko.com/infolist-5-1.html

查询数据库中所有表名select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';查询指定数据库中指定表的所有字段名column_nameselect co ...
 

查询数据库中所有表名
select table_name from information_schema.tables where table_schema=‘csdb‘ and table_type=‘base table‘;


查询指定数据库中指定表的所有字段名column_name
select column_name from information_schema.columns where table_schema=‘csdb‘ and table_name=‘users‘

MySql 查询数据库中所有表

原文:https://www.cnblogs.com/xysun/p/12582274.html


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶