sexta-feira, 9 de março de 2012

Parâmetros

Desabilitando Safe Mode  

Ao tentar deletar registros em uma tabela, aparece os seguinte erro.

Error Code: 1175. To disable safe mode, toggle the option in Preferences -> SQL Editor -> Query Editor and reconnect.
You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colu

Solução desabilitando safe mode.
SET SQL_SAFE_UPDATES=0;
Habilitando safe mode.
SET SQL_SAFE_UPDATES=1;