Select data from “show tables” MySQL query

后端 未结 13 1798
难免孤独
难免孤独 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:41

    Not that I know of, unless you select from INFORMATION_SCHEMA, as others have mentioned.

    However, the SHOW command is pretty flexible, E.g.:

    SHOW tables like '%s%'
    

提交回复
热议问题