1
respuesta

[Duda] no me funciona la consulta error

Al ejecutar el update

UPDATE tb_clientes SET VOLUMEN_DE_COMPRA = VOLUMEN_DE_COMPRA/10;

me lanza este error

0	13	16:07:38	UPDATE tb_clientes SET VOLUMEN_DE_COMPRA = VOLUMEN_DE_COMPRA/10	Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. 
 To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.	0.000 sec

probe descativando la funcion de Safe Update o actualizacion segura pero aun asi el problema persiste pido ayuda.

1 respuesta

Cordial Saludo

Corre este comando SET SQL_SAFE_UPDATES=0; Luego el update: UPDATE tb_cliente SET VOLUMEN_COMPRA = VOLUMEN_COMPRA/10;