SQL101 errors documented

Common SQL Errors and How to Fix Them

Browse all documented SQL errors with detailed explanations, root causes, and step-by-step fixes.

Invalid value for column 'age' of type 'integer': '<b>NULL</b>'

This error occurs when the database encounters an unexpected value in a column. In this case, it is trying to insert a '…

SQL
Guide

SQL Error [1064] (42000): You have an error in your SQL syntax; check the manual

This error occurs when the SQL syntax is incorrect, making it difficult for the database management system (DBMS) to und…

SQL
Guide

ERROR at line 5: ORA-00936: missing expression

This error occurs when the database expects an expression but doesn't receive one. In SQL, an expression is a combinatio…

SQL
Guide

The SQLDriver instance has not been bound to an EntityManager

This error occurs when the SQL Driver instance has not been properly set up to interact with the database using the Enti…

SQL
Guide

SQLSTATE[HY000][1043] Unknown database 'my_database'

This error occurs when the database connection is established successfully, but the database specified in the connection…

SQL
Guide

Error copying to 0: ORA-12519: TNS:internal connection pool has reached the maxi

This error occurs when the database connection pool has reached its maximum number of retries, indicating that the datab…

SQL
Guide

Cannot execute query: Cannot add or update a child row: a foreign key constraint

This error occurs when attempting to insert, update, or delete a record in a table that has a foreign key constraint, bu…

SQL
Guide

Error: unable to create an instance of class 'PDO' because 'PDO' is abstract; it

This error occurs when attempting to create an instance of an abstract class, which can't be directly instantiated. In t…

SQL
Guide

Error running query: CROSS JOIN with temporary result set cannot be used in a su

This error occurs when a SQL query attempts to use a CROSS JOIN with a temporary result set inside a subquery. This is n…

SQL
Guide

Column 'name' is of non-integer type, but expression in HAVING clause is of inte

This error occurs when a non-integer column is used in a HAVING clause that expects an integer value.…

SQL
Guide

SQLSTATE[HY000] [2002] Connection to the database server has been lost. The conn

This error occurs when the SQL connection to the database server is lost, often due to a network issue or a timeout. The…

SQL
Guide

SQLSTATE[HY000][10429] Failed to set DML timer due to invalid event scheduling

This error occurs when the database is unable to set a timer for a DML (Data Manipulation Language) operation due to an …

SQL
Guide

Have a SQL error that's not listed? Get an instant explanation.

Explain Another Error