要获取 MySQL 视图列表,我们可以使用带有 LIKE 运算符的 SELECT 命令。让我们先看看语法。
mysql> SELECT TABLE_SCHEMA, TABLE_NAME -> FROM information_schema.tables -> WHERE TABLE_TYPE LIKE 'VIEW';
以下是显示总观看次数的输出。
+--------------+-----------------------------------------------+ | TABLE_SCHEMA | TABLE_NAME | +--------------+-----------------------------------------------+ | sys | version | | sys | innodb_buffer_stats_by_schema | | sys | x$innodb_buffer_stats_by_schema | | sys | innodb_buffer_stats_by_table | | sys | x$innodb_buffer_stats_by_table | | sys | schema_object_overview | | sys | schema_auto_increment_columns | | sys | x$schema_flattened_keys | | sys | schema_redundant_indexes | | sys | ps_check_lost_instrumentation | | sys | latest_file_io | | sys | x$latest_file_io | | sys | io_by_thread_by_latency | | sys | x$io_by_thread_by_latency | | sys | io_global_by_file_by_bytes | | sys | x$io_global_by_file_by_bytes | | sys | io_global_by_file_by_latency | | sys | x$io_global_by_file_by_latency | | sys | io_global_by_wait_by_bytes | | sys | x$io_global_by_wait_by_bytes | | sys | io_global_by_wait_by_latency | | sys | x$io_global_by_wait_by_latency | | sys | innodb_lock_waits | | sys | x$innodb_lock_waits | | sys | memory_by_user_by_current_bytes | | sys | x$memory_by_user_by_current_bytes | | sys | memory_by_host_by_current_bytes | | sys | x$memory_by_host_by_current_bytes | | sys | memory_by_thread_by_current_bytes | | sys | x$memory_by_thread_by_current_bytes | | sys | memory_global_by_current_bytes | | sys | x$memory_global_by_current_bytes | | sys | memory_global_total | | sys | x$memory_global_total | | sys | schema_index_statistics | | sys | x$schema_index_statistics | | sys | x$ps_schema_table_statistics_io | | sys | schema_table_statistics | | sys | x$schema_table_statistics | | sys | schema_table_statistics_with_buffer | | sys | x$schema_table_statistics_with_buffer | | sys | schema_tables_with_full_table_scans | | sys | x$schema_tables_with_full_table_scans | | sys | schema_unused_indexes | | sys | schema_table_lock_waits | | sys | x$schema_table_lock_waits | | sys | statement_analysis | | sys | x$statement_analysis | | sys | statements_with_errors_or_warnings | | sys | x$statements_with_errors_or_warnings | | sys | statements_with_full_table_scans | | sys | x$statements_with_full_table_scans | | sys | x$ps_digest_avg_latency_distribution | | sys | x$ps_digest_95th_percentile_by_avg_us | | sys | statements_with_runtimes_in_95th_percentile | | sys | x$statements_with_runtimes_in_95th_percentile | | sys | statements_with_sorting | | sys | x$statements_with_sorting | | sys | statements_with_temp_tables | | sys | x$statements_with_temp_tables | | sys | user_summary_by_file_io_type | | sys | x$user_summary_by_file_io_type | | sys | user_summary_by_file_io | | sys | x$user_summary_by_file_io | | sys | user_summary_by_statement_type | | sys | x$user_summary_by_statement_type | | sys | user_summary_by_statement_latency | | sys | x$user_summary_by_statement_latency | | sys | user_summary_by_stages | | sys | x$user_summary_by_stages | | sys | user_summary | | sys | x$user_summary | | sys | host_summary_by_file_io_type | | sys | x$host_summary_by_file_io_type | | sys | host_summary_by_file_io | | sys | x$host_summary_by_file_io | | sys | host_summary_by_statement_type | | sys | x$host_summary_by_statement_type | | sys | host_summary_by_statement_latency | | sys | x$host_summary_by_statement_latency | | sys | host_summary_by_stages | | sys | x$host_summary_by_stages | | sys | host_summary | | sys | x$host_summary | | sys | wait_classes_global_by_avg_latency | | sys | x$wait_classes_global_by_avg_latency | | sys | wait_classes_global_by_latency | | sys | x$wait_classes_global_by_latency | | sys | waits_by_user_by_latency | | sys | x$waits_by_user_by_latency | | sys | waits_by_host_by_latency | | sys | x$waits_by_host_by_latency | | sys | waits_global_by_latency | | sys | x$waits_global_by_latency | | sys | metrics | | sys | processlist | | sys | x$processlist | | sys | session | | sys | x$session | | sys | session_ssl_status | +--------------+-----------------------------------------------+ 100 rows in set (0.01 sec)
复制本文链接文章为作者独立观点不代表优设网立场,未经允许不得转载。
文章推荐更多>
- 1电脑键盘功能键大小写怎么切换 大小写功能键使用
- 2帝国cms适合建什么站
- 3wordpress基于什么语言
- 4wordpress如何重装
- 5手机uc浏览器怎么导出缓存的视频
- 6wordpress防采集插件怎么用
- 7redis锁是什么意思
- 8IDAPro脚本编写:批量分析PE文件
- 9台式电脑怎么连接wifi 台式机无线网络连接步骤
- 10wordpress是怎么添加登录的
- 11oracle如何备份数据库数据
- 12oracle数据库怎么查询审计功能
- 13redis读写分离怎么实现
- 14wordpress应该更新么
- 15俄罗斯搜索引擎免费入口无需登录 俄罗斯搜索入口不登录
- 16 北京网站制作公司哪家好一点,北京租房网站有哪些?
- 17wordpress如何设置定时发布文章
- 18mysql数据删除如何恢复
- 19俄罗斯搜索引擎入口无需要登入 俄罗斯引擎入口无需登录免费
- 20oracle存储过程怎么看
- 21笔记本电脑黑屏按什么键恢复 笔记本黑屏快捷键恢复轻松点亮屏幕
- 22dedecms的md5怎么破
- 23俄罗斯搜索引擎官网无需登录入口 俄罗斯搜索引擎入口无需要登录
- 24oracle数据库怎么备份表结构
- 25redis怎么读写分离
- 26wordpress怎么编辑代码修改页面
- 27oracle数据库在哪里打开
- 28美国电影b站免费观看入口 美国高清电影b站在线观看免费进
- 29uc浏览器缓存的视频怎么导出到电脑
- 30oracle数据库如何导入excel

-----+
| sys | version |
| sys | innodb_buffer_stats_by_schema |
| sys | x$innodb_buffer_stats_by_schema |
| sys | innodb_buffer_stats_by_table |
| sys | x$innodb_buffer_stats_by_table |
| sys | schema_object_overview |
| sys | schema_auto_increment_columns |
| sys | x$schema_flattened_keys |
| sys | schema_redundant_indexes |
| sys | ps_check_lost_instrumentation |
| sys | latest_file_io |
| sys | x$latest_file_io |
| sys | io_by_thread_by_latency |
| sys | x$io_by_thread_by_latency |
| sys | io_global_by_file_by_bytes |
| sys | x$io_global_by_file_by_bytes |
| sys | io_global_by_file_by_latency |
| sys | x$io_global_by_file_by_latency |
| sys | io_global_by_wait_by_bytes |
| sys | x$io_global_by_wait_by_bytes |
| sys | io_global_by_wait_by_latency |
| sys | x$io_global_by_wait_by_latency |
| sys | innodb_lock_waits |
| sys | x$innodb_lock_waits |
| sys | memory_by_user_by_current_bytes |
| sys | x$memory_by_user_by_current_bytes |
| sys | memory_by_host_by_current_bytes |
| sys | x$memory_by_host_by_current_bytes |
| sys | memory_by_thread_by_current_bytes |
| sys | x$memory_by_thread_by_current_bytes |
| sys | memory_global_by_current_bytes |
| sys | x$memory_global_by_current_bytes |
| sys | memory_global_total |
| sys | x$memory_global_total |
| sys | schema_index_statistics |
| sys | x$schema_index_statistics |
| sys | x$ps_schema_table_statistics_io |
| sys | schema_table_statistics |
| sys | x$schema_table_statistics |
| sys | schema_table_statistics_with_buffer |
| sys | x$schema_table_statistics_with_buffer |
| sys | schema_tables_with_full_table_scans |
| sys | x$schema_tables_with_full_table_scans |
| sys | schema_unused_indexes |
| sys | schema_table_lock_waits |
| sys | x$schema_table_lock_waits |
| sys | statement_analysis |
| sys | x$statement_analysis |
| sys | statements_with_errors_or_warnings |
| sys | x$statements_with_errors_or_warnings |
| sys | statements_with_full_table_scans |
| sys | x$statements_with_full_table_scans |
| sys | x$ps_digest_avg_latency_distribution |
| sys | x$ps_digest_95th_percentile_by_avg_us |
| sys | statements_with_runtimes_in_95th_percentile |
| sys | x$statements_with_runtimes_in_95th_percentile |
| sys | statements_with_sorting |
| sys | x$statements_with_sorting |
| sys | statements_with_temp_tables |
| sys | x$statements_with_temp_tables |
| sys | user_summary_by_file_io_type |
| sys | x$user_summary_by_file_io_type |
| sys | user_summary_by_file_io |
| sys | x$user_summary_by_file_io |
| sys | user_summary_by_statement_type |
| sys | x$user_summary_by_statement_type |
| sys | user_summary_by_statement_latency |
| sys | x$user_summary_by_statement_latency |
| sys | user_summary_by_stages |
| sys | x$user_summary_by_stages |
| sys | user_summary |
| sys | x$user_summary |
| sys | host_summary_by_file_io_type |
| sys | x$host_summary_by_file_io_type |
| sys | host_summary_by_file_io |
| sys | x$host_summary_by_file_io |
| sys | host_summary_by_statement_type |
| sys | x$host_summary_by_statement_type |
| sys | host_summary_by_statement_latency |
| sys | x$host_summary_by_statement_latency |
| sys | host_summary_by_stages |
| sys | x$host_summary_by_stages |
| sys | host_summary |
| sys | x$host_summary |
| sys | wait_classes_global_by_avg_latency |
| sys | x$wait_classes_global_by_avg_latency |
| sys | wait_classes_global_by_latency |
| sys | x$wait_classes_global_by_latency |
| sys | waits_by_user_by_latency |
| sys | x$waits_by_user_by_latency |
| sys | waits_by_host_by_latency |
| sys | x$waits_by_host_by_latency |
| sys | waits_global_by_latency |
| sys | x$waits_global_by_latency |
| sys | metrics |
| sys | processlist |
| sys | x$processlist |
| sys | session |
| sys | x$session |
| sys | session_ssl_status |
+--------------+-----------------------------------------------+
100 rows in set (0.01 sec)