MySQL 8.4 Release Notes
30.4.3.36 The statements_with_errors_or_warnings 和 x$statements_with_errors_or_warnings 视图
这些视图显示了产生错误或警告的 normalized 语句。默认情况下,行按降序的错误和警告计数排序。
The statements_with_errors_or_warnings
和 x$statements_with_errors_or_warnings
视图具有以下列:
-
query
normalized 语句字符串。
-
db
语句的默认数据库,或者如果没有则为
NULL
。 -
exec_count
语句执行的总次数。
-
errors
语句执行的总错误数。
-
error_pct
语句执行中错误的百分比。
-
warnings
语句执行的总警告数。
-
warning_pct
语句执行中警告的百分比。
-
first_seen
语句首次出现的时间。
-
last_seen
语句最近一次出现的时间。
-
digest
语句摘要。