Get all tables from information_schema, MySQL

后端 未结 2 1571
孤独总比滥情好
孤独总比滥情好 2021-02-15 18:26

I just dont understand one thing. When I type:

SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = \'BASE TABLE\';

I get:



        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-15 19:05

    'information_schema' has ONLY SERVICE INFORMATION. It has info about table 'db' is exist, but it table IS NOT IN 'information_schema' DATABASE -- somewhere, but not in 'information_schema'.

    Info about database which has needed table saved in TABLE_SCHEMA field

提交回复
热议问题