-
Notifications
You must be signed in to change notification settings - Fork 111
version
xiaoboluo768 edited this page Jun 9, 2020
·
2 revisions
-
查看当前的sys schema和MySQL server版本,数据来源:select '1.5.1'常数查询和version()函数输出
-
version视图字段含义如下
- sys_version:sys schema版本
- mysql_version:MySQL server版本
-
视图定义语句
CREATE OR REPLACE
DEFINER = 'root'@'localhost'
SQL SECURITY INVOKER
VIEW version (
sys_version, mysql_version
) AS
SELECT '1.5.1' AS sys_version,
version() AS mysql_version;
- 视图查询信息示例
admin@localhost : sys 12:57:53> select * from version;
+-------------+---------------+
| sys_version | mysql_version |
+-------------+---------------+
| 1.5.1 | 5.7.18-log |
+-------------+---------------+
1 row in set (0.00 sec)
上一篇: user_summary_by_statement_type,x$user_summary_by_statement_type视图 |
下一篇: wait_classes_global_by_avg_latency,x$wait_classes_global_by_avg_latency视图
- 验证、测试、整理:罗小波
- QQ:309969177
- 提示:本系列文章的主体结构遵循Oracle MySQL 官方 5.7 手册中,关于information_schema、mysql schema、performance_schema、sys schema的章节结构体系,并额外添加了一些验证、测试数据。鉴于本人精力和能力有限,难免出现一些纰漏,欢迎大家踊跃指正!