Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here are a few examples of errors that can occur even with SQL statements that are syntactically correct and which may work in your development environment:</p> <ul> <li><p><a href="http://dev.mysql.com/doc/refman/5.1/en/constraint-primary-key.html" rel="nofollow noreferrer">Duplicate key violation</a> from an <code>INSERT</code> or <code>UPDATE</code>. That is, a <code>PRIMARY KEY</code> or <code>UNIQUE KEY</code> prevents you from setting a column to the same value in another row. Sleeping is not likely to fix this, you need to change the values you're inserting/updating.</p></li> <li><p><a href="http://dev.mysql.com/doc/refman/5.1/en/constraint-invalid-data.html" rel="nofollow noreferrer">Constraint violations</a> such as unsatisfied <a href="http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html" rel="nofollow noreferrer">foreign key</a> references or setting a <code>NOT NULL</code> column to NULL. You need to insert/update using values that do not violate the constraints. Deleting a row that has foreign key dependencies results in an error unless you defined cascading behavior in the FK constraint declaration. Also it's an error to insert or update using a value that's out of range for a column's data type.</p></li> <li><p><a href="http://dev.mysql.com/doc/refman/5.1/en/privilege-system.html" rel="nofollow noreferrer">SQL privileges</a> can restrict the operations you can perform.</p></li> <li><p><code>SELECT</code> may give an error if you generate queries dynamically with your application code, and the query it generates is flawed.</p></li> <li><p>A query that worked before may give an error if someone changes the MySQL <a href="http://dev.mysql.com/doc/refman/5.1/en/server-sql-mode.html" rel="nofollow noreferrer"><code>SQL MODE</code></a> to be more strict. For example, some implicit data type conversions or permissive enforcement of the Single-Value Rule in <code>GROUP BY</code> queries may fail.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload