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

后端 未结 5 576
后悔当初
后悔当初 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:30

    Vincent already answered your question perfectly, but I'm curious about the "why" behind this action. Why are you updating all NULL's to 0?

    Regards, Rob.

提交回复
热议问题