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

delete from user where username = '222'

编译报错:

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.

解决方法:
SET SQL_SAFE_UPDATES=0;

delete from user where username = '222'
---------------------
作者:稚枭天卓
来源:CSDN
原文:https://blog.csdn.net/u013630349/article/details/51691414
版权声明:本文为博主原创文章,转载请附上博文链接!

原文地址:https://www.cnblogs.com/longlyseul/p/11197996.html