Get all tables from information_schema, MySQL

后端 未结 2 672
无人及你
无人及你 2021-02-15 18:50

I just dont understand one thing. When I type:

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

I get:



        
2条回答
  •  旧时难觅i
    2021-02-15 19:00

    '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

提交回复
热议问题