如何获取 MySQL 视图列表?
技术百科
PHPz
发布时间:2023-09-13
浏览: 次 要获取 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)
# 让我们
# 可以使用
# hongkong
# aliyucs
# select
# 运算符
# mysql
# version
# sys
# innodb_buffer_stats_by_schema
# innodb_buffer_stats_by_table
# schema_object_overview
相关栏目:
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
AI推广<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
SEO优化<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
技术百科<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
谷歌推广<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
百度推广<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
网络营销<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
案例网站<?muma echo $count; ?>
】
<?muma
$count = M('archives')->where(['typeid'=>$field['id']])->count();
?>
【
精选文章<?muma echo $count; ?>
】
相关推荐
- 手机php文件怎么变成mp4_安卓苹果打开php转
- 如何使用Golang benchmark测量函数延
- php订单日志怎么按金额排序_php按订单金额排序
- 微信JSAPI支付回调PHP怎么接收_处理JSAP
- 如何使用Golang进行HTTP服务性能测试_测量
- 如何在 Django 中安全修改用户密码而不使会话
- Linux如何使用grep搜索文件内容_Linux
- Python代码测试策略_质量保障解析【教程】
- Windows10系统怎么查看设备管理器_Win1
- 如何提升Golang JSON序列化性能_Gola
- Mac的“预览”如何合并多个PDF_Mac文件处理
- 如何高效删除 NumPy 二维数组中所有元素相同的
- php订单日志怎么在swoole写_php协程sw
- php8.4如何调用com组件_php8.4win
- Win11如何设置ipv6 Win11开启IPv6
- 如何使用Golang匿名函数_快速定义临时函数逻辑
- php删除数据怎么清空表_truncate与del
- Win11怎么禁用键盘自带键盘_Win11笔记本禁
- Win10怎样清理C盘爱奇艺缓存_Win10清理爱
- php转exe用什么工具打包快_高效打包软件推荐【
- Python大型项目拆分策略_模块化解析【教程】
- php485在php5.6下能用吗_php485旧
- Win11怎么开启远程桌面_Win11系统远程桌面
- 短链接怎么自定义还原php_修改解码规则适配需求【
- Win10如何卸载预装Edge扩展_Win10卸载
- How to Properly Use NumPy
- Ajax提交表单PHP怎么接收_处理Ajax发送的
- 如何在 Go 同包不同文件中正确引用结构体
- c++ unordered_map怎么用 c++哈
- Win10文件历史记录怎么用 Win10开启自动备
- Python文件和流处理指南_高效读写大体积数据文
- c# 在高并发下使用反射发射(Reflection
- 电脑的“网络和共享中心”去哪了_Windows 1
- php高频调试功能有哪些_php常用调试函数与工具
- Win11怎么查看电脑配置_Win11硬件配置详细
- Win11截图快捷键是什么_Win11自带截图工具
- MySQL 中使用 IF 和 CASE 实现查询字
- Win10怎样卸载iTunes_Win10卸载iT
- 如何使用Golang实现微服务状态监控_Golan
- Win11怎么设置虚拟内存最佳大小_Windows
- 如何在Golang中处理数据库事务错误_回滚和日志
- Win11怎么忘记WiFi网络_Win11删除已保
- Python字符串处理进阶_切片方法解析【指导】
- 如何在 Go 中高效缓存与分发网络视频流
- Win10怎样清理C盘浏览器缓存_Win10清理浏
- Win10闹钟铃声怎么自定义 Win10闹钟自定义
- Windows 11登录时提示“用户配置文件服务登
- 如何使用 Selenium 正确获取篮球参考网站球
- Win11时间不对怎么同步_Win11自动校准互联
- C++如何使用std::async进行异步编程?(

-----+
| 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)
QQ客服