Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的表中有多个具有 NULL 值的列。
我想NULL将此表中的所有值替换为0.
NULL
0
假设所有列都是数字数据类型,您可以这样做:
UPDATE YourTable SET Column1 = ISNULL(Column1,0), Column2 = ISNULL(Column2,0), Column3 = ISNULL(Column3,0), Column4 = ISNULL(Column4,0)....