将所有 0 值设置为 NULL

问题描述:

如何将 SQL 表中的所有 0 值设置为 NULL?

How can I set all the 0 values to NULL in an SQL table ?

提前致谢.

update table set col = null where col = 0