프로그램/- Sql

[Mysql Workbench]UPDATE 쿼리 실행시 Error Code 1175

짬타이거♬ 2014. 11. 10. 20:43

# 에러 메세지

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 Queries and reconnect.


# 원인

Safe Update 모드 상태로 설정되어 있어서 UPDATE시 KEY 컬럼을 이용하지 않을 경우 업데이트할 수 없음.

 

# 해결방법

- Query

SET SQL_SAFE_UPDATES =0;


- Workbench 설정 

safe 모드 체크 해지