2024-06-09
阅读量:
5936
sql 执行update修改字段报错
Hi 各位大神,
我的mysql执行字段修改时,报错信息如下
,麻烦帮忙看看原因,谢谢
18:05:54 update stu set s_sex='男' where s_sex='未知' 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.000 sec
详细错误信息见附件截图






评论(2)


零点溯灵
2025-02-16
-- 禁用安全模式
SET SQL_SAFE_UPDATES = 0;
-- 执行你的 UPDATE 语句
UPDATE stu SET s_gender = '男' WHERE s_gender = '未知';
-- 恢复安全模式(可选)
SET SQL_SAFE_UPDATES = 1;
0.0000
0
0

CDA持证人阿涛哥
2024-10-28
CDA L1 mysql报错Error Code: 1175. You are using safe update mode
https://www.cda.cn/discuss/post/details/63a4110de1840060d6346421
0.0000
0
0
推荐帖子
0条评论
1条评论
0条评论