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)....