1
I wanted to make UPDATE
in the last record of the table, where the agent column is equal to "4827"
I tried to use this way but error occurs:
UPDATE login_agent
SET data_hora_login_saida = 'DATA_FIM'
WHERE agente = '4827'
AND id_log IN (select max(id_log) from login_agent);
Someone could give me a Help ?
Made that mistake
ERROR 1093 (HY000): You can't specify target table 'login_agent' for update in FROM clause
with your example, do you know what it might be ? @Rovannlinhalis– lucas gobira