Post
KO

safe mode off

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

에러 메세지

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 모드 체크 해지

This article is licensed under CC BY 4.0 by the author.