How to optimize an update SQL that runs on a Oracle table with 700M rows

后端 未结 5 588
后悔当初
后悔当初 2021-02-06 02:01
UPDATE [TABLE] SET [FIELD]=0 WHERE [FIELD] IS NULL

[TABLE] is an Oracle database table with more than 700 million rows. I cancelled the SQL execution a

5条回答
  •  天涯浪人
    2021-02-06 02:26

    You could acheive the same result without updating by using an ALTER table to set the columns "DEFAULT" value to 0.

提交回复
热议问题