gpt4 book ai didi

mysql - 如何将字段更新为空值?

转载 作者:行者123 更新时间:2023-11-29 11:00:32 25 4
gpt4 key购买 nike

尝试使用这两个命令,但都不起作用:

update planes set year = 2013 where year is null; 

update planes set year = 2013 where year = null; 

planes - 表名称

最佳答案

您可以取消设置安全模式

SET SQL_SAFE_UPDATES = 0;

然后运行您的查询

关于mysql - 如何将字段更新为空值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42368984/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com