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 解决的方法

相关文章:

  • 2021-03-31
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-08-29
  • 2022-01-18
猜你喜欢
  • 2021-08-09
  • 2021-10-18
  • 2022-03-01
  • 2022-12-23
  • 2021-09-30
  • 2021-10-21
相关资源
相似解决方案