# mysql 查找某个表在哪个库

SELECT table_schema FROM information_schema.TABLES WHERE table_name = '表名'

例如:
SELECT table_schema FROM information_schema.TABLES WHERE table_name = 'organization_info';

mysql 知道表名怎么去查找在那个数据库?

 

 因为这两个库都有这个表,因此查出了两个库名

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-12-26
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案