码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-07-24 09:56:31      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:rar   font   track   原因   store   using   temporary   content   put   

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

标签:rar   font   track   原因   store   using   temporary   content   put   

原文地址:http://www.cnblogs.com/yangykaifa/p/7227103.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!