본문 바로가기
IT/Tips

[Mysql][MariaDB] MySQL Workbench에서 Update 및 Delete Query 시에 Error Code: 1175 에러 발생 할 경우

by Joe! 2018. 5. 9.
반응형

[Mysql][MariaDB] MySQL Workbench에서 Update 및 Delete Query 시에 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 Editor and reconnect. 에러 발생 시



아래 두가지 옵션 중 한가지를 선택해서 진행하면 에러 없이 Update 및 Delete Query가 가능하다.


1) 첫 번째

SET SQL_SAFE_UPDATES = 0; 쿼리 실행



2) 두번 째 방안

Edit > Preferences 설정에서 SQL Editor 항목의 Safe Updates 항목 체크박스 해제


반응형

댓글