将所有0值设置为NULL

Mar*_*hal 5 sql sql-server sql-server-2005

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

提前致谢.

Nim*_*sky 14

update table set col = null where col = 0
Run Code Online (Sandbox Code Playgroud)