Select data from “show tables” MySQL query

后端 未结 13 1777
难免孤独
难免孤独 2020-12-01 04:15

Is it possible to select from show tables in MySQL?

SELECT * FROM (SHOW TABLES) AS `my_tables`

Something along these lines, th

13条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 04:34

    SELECT * FROM INFORMATION_SCHEMA.TABLES
    

    That should be a good start. For more, check INFORMATION_SCHEMA Tables.

提交回复
热议问题