728x90
🚨 상황
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
테이블의 데이터를 delete 으로 삭제 하려는 도중 Error Code:1175 발생
원인
MySQL Workbench 에서 기본적으로 제공하는 SAFE MODE 설정
해결 법
1. SQL 문으로 해결
SET SQL_SAFE_UPDATES = 0;
2. 옵션 변경
Edit - Preferences - SQL Editor - Safe Updates 체크 해제 해주기
728x90
'Database' 카테고리의 다른 글
[Programmers] 자동차 대여 기록에서 장기/단기 대여 구분하기 (0) | 2024.02.20 |
---|---|
[Programmers] SUM, MAX, MIN - 최댓값 구하기, 중복 제거하기 (0) | 2024.02.20 |
[MySQL] 손이 편해지는 MySQL 단축키 모음집 📚 (1) | 2024.01.25 |
[MySQL] SQL 고급 실습 연습하기2 (0) | 2024.01.24 |
[MySQL] SQL 고급 실습 연습하기1 (0) | 2024.01.24 |