SQLCriticalRuntime ErrorMay 7, 2026

Runtime Error

SQLSTATE[22023]: Clock specification error: 1264 Out of range value for column 'age' at row 1

What This Error Means

This error occurs when you attempt to insert a value into a numeric column that exceeds the defined range of acceptable values.

Why It Happens

In SQL, numeric columns are often defined with a specific range of values (e.g., INT(5) or DECIMAL(10, 2)). When you try to insert a value that falls outside this range, the database engine raises a runtime error. This is because the value cannot be stored in the column.

How to Fix It

  1. 1To fix this error, you need to ensure that the value you are attempting to insert falls within the defined range of the column. You can do this by checking the data type and scale of the column, and adjusting the input value accordingly. Here's an example:
  2. 2// Before (broken code)
  3. 3INSERT INTO users (age) VALUES (200);
  4. 4// After (fixed code)
  5. 5INSERT INTO users (age) VALUES (50);

Example Code Solution

❌ Before (problematic code)
SQL
INSERT INTO users (age) VALUES (200);
✅ After (fixed code)
SQL
INSERT INTO users (age) VALUES (50);

Fix for SQLSTATE[22023]: Clock specification error: 1264 Out of range value for column 'age' at row 1

Related SQL Errors

Related SQL Blog Articles

Have a different error? Get an instant explanation.

Explain Another Error