MySQL Workbench 에서 Error Code:1175 (Safe update mode) 에러 발생 시

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. 하나의 레코드만을 update, delete하도록 설정되어 있는데, 다수의 레코드를 update나 delete하는 sql명령어가 실행되기 때문에 발생을 하는 것. 해결방법 1. set sql_safe_updates=0; 해결방법 2.

Incorrect integer value: ” for column ‘컬럼 이름’ at row 오류 났을 때

select @@global.sql_mode; select @@session.sql_mode; set @@global.sql_mode = ‘ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION’; set @@session.sql_mode = ‘ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION’; set @@global.sql_mode = REPLACE(@@sql_mode, ‘STRICT_TRANS_TABLES’, ”); set @@session.sql_mode = REPLACE(@@sql_mode, ‘STRICT_TRANS_TABLES’, ”);