Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE(示例代

Posted yangykaifa

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE(示例代相关的知识,希望对你有一定的参考价值。

1 错误描写叙述

19:15:34	call sp_store_insert(90)	

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.	
0.093 sec

2 错误原因

CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_store_insert`(in score int)
BEGIN

 create temporary table if not exists temp_student(
     id int(6) primary key,
     name varchar(20)
 );
 
 delete from temp_student;
 
 insert into temp_student(id,name) 
 select t.id,t.name from t_computer_stu t
 where t.score > score;
 

END

call sp_store_insert(90);

3 解决的方法

以上是关于Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE(示例代的主要内容,如果未能解决你的问题,请参考以下文章

mysql 报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a

SQL更新语句,Error Code: 1175. You are using safe update(在进行视图更新的时候遇到)

Git you are not allowed to push code to protected branches on this project?

remote: GitLab: You are not allowed to push code to protected branches on this project.

mysql delete数据时报Error Code 1175

MySQL中进行update/delete操作时,发生 Error Code: 1175