Ciao a tutti,
sto cercando di esguire la seguente query:
codice:
UPDATE miatabella SET campo = 1 WHERE ID = (SELECT MIN(ID) FROM miatabella WHERE campo2 = 2)
L'errore che mi viene restituito dal db è
codice:
You can't specify target table 'miatabella' for update in FROM clause
Avete idee su come farla funzionare?