isql (sql Anywhere) 更新 NULL 值
如何更改表的(NULL)值?我到处搜索但没有找到正确的答案。
有效,但更新 0 行:
UPDATE Club
SET Place = 24
WHERE Place = NULL;
无效:
UPDATE Club
SET Place = 24
WHERE Place IS NULL;
How can i change (NULL) value of a table? I have searched everywhere but didn't find the right answer.
Works, but updates 0 rows:
UPDATE Club
SET Place = 24
WHERE Place = NULL;
Not working:
UPDATE Club
SET Place = 24
WHERE Place IS NULL;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
值得尝试的事情
Something worth trying
这很好用。如果它不起作用,那么您就没有 Place 为空的记录。
还要检查 null 大小写,因为 sql 区分大小写。
This works fine. If its not working then, you don't have records where Place is null.
Check with null case as well, as sql is case sensitive.