MySQL WORKBENCH 6.1.6을 사용하고 있습니다. 내 database_table을 업데이트해야합니다. 다음 코딩을 시도했습니다.
UPDATE `test`.`festexplorer_users`
SET
User_preference = 'All_Over_India'
WHERE User_year_of_passing=2015;
여기서 "test"는 내 데이터베이스 이름이고 festexplorer_users는 내 테이블 이름이며 User_preference 열을 업데이트해야합니다. 다음과 같은 오류가 있습니다.
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.
내 오류를 어떻게 지울 수 있습니까?
MySQL WorkBench에서
편집-> 환경 설정-> SQL 쿼리
WHERE 절이없는 UPDATE 및 DELETE 문 금지 (안전한 업데이트)를 선택 취소 합니다.
그때
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다