DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: To Update null columns- which is the best way

  1. #1
    Join Date
    Apr 2006
    Posts
    1

    Exclamation To Update null columns- which is the best way

    I just started a new job. The table has null values in some columns. It has about 200 million rows. The developers were doing IS NULL in the table. Normally if it is a 1 million row table, I would use bulk to update the null columns and put a default where there can be null values in the table ALTER. I have never worked with 200 million. What do you think is the best approach to update these ciolumns that have nulls. I know I can use before update trigger also. Pl. do let me know the best way to clean this mess up.

    Thank you,

  2. #2
    Join Date
    Feb 2005
    Posts
    158
    Firstly, identify the problem. NULL values are not a problem in themselves.
    Why do you think they need to be updated.

    If just want to index nulls, then you can use a function based index [eg DECODE(col,NULL,'NULL') and query where DECODE(col,NULL,'NULL') = 'NULL']

  3. #3
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    For 200M rows, and one time update, I would go for CTAS.

    Tamil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width