1136 SQL Origin: Data OSI layer 7 · Application Last updated 13 Oct 2026

MySQL ERROR 1136 (21S01): Column count doesn't match value count at row 1

An INSERT supplies a different number of values than columns.

Exact message you may see Column count doesn't match value countINSERT has more expressions than target columns
Seen on: SQL

Meaning

Omitting the column list and inserting fewer values, a missing comma, or a schema change adding columns.

Common causes

  • INSERT without a column list after the table gained columns
  • Missing/extra value
  • Missing comma between values

⚡ Quick fix

  1. Always list columns explicitly in INSERT
  2. Count values per row

Detailed fix by platform

SQL

  1. INSERT INTO users (email, name) VALUES ('a@b.com', 'Asha');

How to diagnose

  1. Counts — Columns vs values?
  2. Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Data. Errors that are often confused with or caused by this one (click to open):

102 — SQL Server: Incorrect syntax near 'x'. (Msg 102) (SQL)1021066 — MySQL ERROR 1066 (42000): Not unique table/alias: 'x' (SQL)10661222 — MySQL ERROR 1222 (21000): The used SELECT statements have a different number of columns (SQL)12221248 — MySQL ERROR 1248 (42000): Every derived table must have its own alias (SQL)124842601 — ERROR: syntax error at or near "x" (PostgreSQL)42601aggregate in WHERE — ERROR: aggregate functions are not allowed in WHERE (use HAVING) / MySQL 1111 Invalid use of group function (SQL)aggregate in WHEREambiguous column — Column reference is ambiguous / Column 'id' in field list is ambiguous (MySQL 1052) (SQL)ambiguous columnGROUP BY — Column must appear in the GROUP BY clause / isn't in GROUP BY (MySQL 1055 only_full_group_by) (SQL)GROUP BY1136

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.