26.4.3.36 statement_with_errors_or_warnings 和 x $ statements_with_errors_or_warnings 视图

这些视图显示已产生错误或警告的规范化语句。默认情况下,行按降序排列的错误和警告计数排序。

statements_with_errors_or_warningsx$statements_with_errors_or_warnings视图具有以下列:

  • query

规范化的语句字符串。

  • db

语句的默认数据库;如果不存在,则为NULL

  • exec_count

语句已执行的总次数。

  • errors

语句出现所产生的错误总数。

  • error_pct

产生错误的语句出现的百分比。

  • warnings

语句的出现所产生的警告总数。

  • warning_pct

产生警告的语句出现的百分比。

  • first_seen

第一次看到该声明的时间。

  • last_seen

最近一次发 table 该声明的时间。

  • digest

语句摘要。