설치&설정 관련/MariaDB & Mysql
[ERROR 1175] UPDATE 시 WHERE that uses a KEY column To... ERROR 발생시
lahuman
2014. 5. 13. 16:23
728x90
UPDATE tablename SET columnname=1
위와 같은 질의를 요청 하였을때 (Where 조건 없이 column을 update 시)
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 ....
과 같은 오류를 만났다면,
safe-updates option을 확인하여야 한다..
위의 옵션이 1일 경우, update 또는 delete를 where조건 key(ex. prmary key) 없이 할 수 없다.
아니면 SQL을 where 조건을 사용하여, 처리 하여야 한다.
옵션을 변경하는 방법은
SET SQL_SAFE_UPDATES = 0;
이다.
참고 : http://stackoverflow.com/questions/11448068/mysql-error-code-1175-during-update-in-mysql-workbench
728x90