Common SQL Errors

MySQL Error 1092: ER_INSERT_INFO - How to Fix and Prevent

Galaxy Team
August 5, 2025

Error 1092 displays the summary line “Records: X Duplicates: Y Warnings: Z” after a data-loading or multi-row INSERT operation. It is informational but highlights duplicates and warnings that may need attention.

Sign up for the latest in common SQL errors from the Galaxy Team!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

What is MySQL error code 1092 (ER_INSERT_INFO)?

MySQL Error 1092 (ER_INSERT_INFO) is an informational message showing how many rows were processed, duplicated, or warned during LOAD DATA or multi-row INSERT statements. Investigate duplicates, review warnings, and adjust INSERT or table constraints to keep data integrity.

Error Highlights

Typical Error Message

Records: %ld Duplicates: %ld Warnings: %ld

Error Type

Informational Message

Language

MySQL

Symbol

ER_INSERT_INFO

Error Code

1092

SQL State

Explanation

Table of Contents

What does MySQL Error 1092 (ER_INSERT_INFO) mean?

MySQL prints “Records: X Duplicates: Y Warnings: Z” when it finishes a LOAD DATA, INSERT … SELECT, or bulk INSERT statement. The server assigns code 1092 and condition ER_INSERT_INFO to this status line.

This is not a fatal error. It is a notification that some or all inserted rows met duplicate keys or generated warnings.

Ignoring it can leave unexpected data gaps or silent truncations.

When does the message appear?

The summary is returned to the client after the statement completes. Command-line tools echo the text, APIs expose it as info(), and editors like Galaxy show it in the result pane.

If Y or Z is greater than zero, data did not load exactly as intended. Investigating saves time later when queries show missing or inconsistent rows.

.

Common Causes

Duplicate key collisions

INSERT or LOAD DATA tried to insert rows that violate UNIQUE or PRIMARY KEY constraints. MySQL counted them in the Duplicates column.

Implicit data truncation

Column length limits or strict mode conversions triggered warnings. These appear in the Warnings column and may silently modify data.

NOT NULL defaults

Missing values for NOT NULL columns caused warnings.

The row may insert with implicit defaults, hiding a data quality issue.

ENGINE-level restrictions

Storage engines such as InnoDB may skip or modify rows when foreign-key checks fail and foreign_key_checks is disabled, raising warnings.

.

Related Errors

FAQs

Is Error 1092 dangerous?

No rows were rejected outright, but duplicates or warnings can hide data issues. Always review them.

How do I stop seeing the summary line?

The message is informational. Suppress it in client code by ignoring info() or by filtering stdout.

Why are duplicates increasing?

Check UNIQUE constraints and source data. Missing primary keys or repeated rows will inflate the count.

Can Galaxy detect these warnings automatically?

Yes. Galaxy surfaces MySQL warnings after each run and lets you annotate or fix the offending query before endorsing it.

Start Querying with the Modern SQL Editor Today!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

Check out some other errors

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo