显示所有的数据库:
show databases 

显示一个数据库所有表用:
show tables from DatabaseName

SELECT table_name FROM information_schema.tables WHERE table_schema='DatabaseName' AND table_type='base table';

显示一个数据库中的所有视图:

 show table status from DatabaseName where comment='view';
select * from information_schema.tables where table_schema='yourDatabaseName' and table_type='view';

 

相关文章:

  • 2021-10-28
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-11-27
  • 2021-12-04
猜你喜欢
  • 2022-01-28
  • 2021-12-14
  • 2021-10-18
  • 2021-08-24
  • 2021-06-07
  • 2022-12-23
  • 2021-07-05
相关资源
相似解决方案