查詢所有表名

mysql 查詢表名


查詢所有表信息
select * from INFORMATION_SCHEMA.TABLES

查詢指定數據庫下的表信息
select * from INFORMATION_SCHEMA.TABLES where table_schema = "dbname"

查詢指定數據庫下的表名
select table_name from INFORMATION_SCHEMA.TABLES where table_schema = "dbname"

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章