MySQL Error Code: 1175

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'

你可能感兴趣的:(mysql,set,delete,from,1175)