Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • okay... so first you want to do an update query to turn all the nulls to zeros. then you want to modify each column and make it the same except add a default 0 to it (and a not null to it, too) Commented Nov 21, 2013 at 23:52
  • 1
    update table_name set test_col = ifnull(test_col, 0) and do that for each column so they have 0's instead of nulls...... Commented Nov 21, 2013 at 23:53