Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改表的(NULL)值?我到处搜索,但没有找到正确的答案。
有效,但更新 0 行:
UPDATE Club SET Place = 24 WHERE Place = NULL;
不工作:
UPDATE Club SET Place = 24 WHERE Place IS NULL;
这工作正常。如果它不起作用,那么您没有 Place 为空的记录。也检查空大小写,因为 sql 区分大小写。
值得尝试的东西
Update Club Set Place = 24 where CLUBID in (Select CLUBID from Club where place is NULL)