ClickHouse/docs/ru/operations/system-tables/errors.md
2022-08-26 13:37:11 -04:00

27 lines
877 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
slug: /ru/operations/system-tables/errors
---
# system.errors {#system_tables-errors}
Содержит коды ошибок с указанием количества срабатываний.
Столбцы:
- `name` ([String](../../sql-reference/data-types/string.md)) — название ошибки (`errorCodeToName`).
- `code` ([Int32](../../sql-reference/data-types/int-uint.md)) — номер кода ошибки.
- `value` ([UInt64](../../sql-reference/data-types/int-uint.md)) — количество ошибок.
**Пример**
``` sql
SELECT *
FROM system.errors
WHERE value > 0
ORDER BY code ASC
LIMIT 1
┌─name─────────────┬─code─┬─value─┐
│ CANNOT_OPEN_FILE │ 76 │ 1 │
└──────────────────┴──────┴───────┘
```