https://stackoverflow.com/questions/11448068/mysql-error-code-1175-during-update-in-mysql-workbench

 

 

MySQL error code: 1175 during UPDATE in MySQL Workbench

I'm trying to update the column visited to give it the value 1. I use MySQL workbench, and I'm writing the statement in the SQL editor from inside the workbench. I'm writing the following command:

stackoverflow.com

 

코딧 9기로 수업듣는 중에 UPDATE가 안되길래, 정리해본다.

나중에 혹시 또 이런 경우가 생길까봐,,ㅎㅎ

 

Error Codesms 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.

 

즉, safe update mode가 걸려있어서 안된다는거,,

이는 "UPDATE 문을 주의깊게 사용하지 않았을 때 발생할 수 있는 위험한 결과를 방지하기 위한, DBMS 상의 모드인데요. 만약 이 모드가 켜져있는 분이라면, 이전 영상에서 했던 SQL 문이 실행되지 않았을 겁니다."라고 한다.

 

이럴때는 위의 스택오버플로우와 같이 잠깐 해줘도 되고,

 

disable safe mode를 Prefeneces에서

 

검정색 상자 내의 Safe Updates를 해제하고 OK 하면 된다.

 

 

***안된다고 당황하지 않기 ^^!

'EDU > codeIt' 카테고리의 다른 글

깃 상태 기초  (0) 2021.09.14
깃 기초2  (0) 2021.09.14
깃 영역 기초  (0) 2021.09.14
SQL 실무 시작 전, 확인하기  (0) 2021.08.25
코드잇 9기 참여  (1) 2021.08.05

+ Recent posts