Reputation: 8995
I have a field named size
. Some rows are null
. I want to update these rows' size
field to 0
. How I'll do it?
Upvotes: 2
Views: 103
Reputation: 38456
You'll have to use WHERE size IS NULL
in the update clause:
UPDATE table SET size = 0 WHERE size IS NULL;
Upvotes: 2