2020-11-03
阅读量:
667
如何查询数据库中所有表名?
查询数据库中所有表名有两种方法:
1、select table_name from information_schema.tables where table_schema='当前bai数据库';
2、show tables;
其中,information_schema这张数据表保存了MySQL服务器所有数据库的信息。如数据库名,数据库的表,表栏的数据类型与访问权限等。






评论(0)


暂无数据