如何将字段更新为空值?

时间:2017-02-21 13:42:51

标签: mysql

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

update planes set year = 2013 where year is null; 

update planes set year = 2013 where year = null; 

飞机 - 表名

1 个答案:

答案 0 :(得分:1)

您可以取消设置安全模式

SET SQL_SAFE_UPDATES = 0;

然后运行您的查询

相关问题