2020-10-28 22:00:04 +00:00
|
|
|
# system.errors {#system_tables-errors}
|
|
|
|
|
2020-12-09 14:03:38 +00:00
|
|
|
Contains error codes with the number of times they have been triggered.
|
2020-10-28 22:00:04 +00:00
|
|
|
|
|
|
|
Columns:
|
|
|
|
|
|
|
|
- `name` ([String](../../sql-reference/data-types/string.md)) — name of the error (`errorCodeToName`).
|
|
|
|
- `code` ([Int32](../../sql-reference/data-types/int-uint.md)) — code number of the error.
|
2020-12-09 15:50:58 +00:00
|
|
|
- `value` ([UInt64](../../sql-reference/data-types/int-uint.md)) — the number of times this error has been happened.
|
2020-10-28 22:00:04 +00:00
|
|
|
|
|
|
|
**Example**
|
|
|
|
|
|
|
|
``` sql
|
|
|
|
SELECT *
|
|
|
|
FROM system.errors
|
|
|
|
WHERE value > 0
|
|
|
|
ORDER BY code ASC
|
|
|
|
LIMIT 1
|
|
|
|
|
|
|
|
┌─name─────────────┬─code─┬─value─┐
|
|
|
|
│ CANNOT_OPEN_FILE │ 76 │ 1 │
|
|
|
|
└──────────────────┴──────┴───────┘
|
|
|
|
```
|