MySQL Error 1093 – ER_UPDATE_TABLE_USED

MySQL Error Message

You can’t specify target table ‘%s’ for update in FROM
clause

Reason for the Error

This error occurs for attempts to select from and modify the same
table within a single statement. If the select attempt occurs
within a derived table, you can avoid this error by setting the
derived_merge flag of the
optimizer_switch system variable
to force the subquery to be materialized into a temporary table,
which effectively causes it to be a different table from the one
modified. See Optimizing Derived Tables, View References, and Common Table Expressions with Merging or Materialization.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

MySQL Error Message Could not read CA key file: %s Reason for the Error ER_X509_CANT_READ_CA_KEY was added in 8.0.2.
MySQL Error Message Read invalid event from master: ‘%s’, master could be corrupt but a more likely cause of this...
MySQL Error Message %s Reason for the Error ER_IB_MSG_315 was added in 8.0.11.