wellster34
Programmer
Hi,
I have a table that contains 19 million rows. I need to update 14 million of them to change a value from NULL to 0. Is there a quick way to do this?
TABLE
PK COLUMN 1
PK COLUMN 2
PK COLUMN 3
PK COLUMN 4
PK COLUMN 5
COLUMN A
COLUMN B
COLUMN C
COLUMN D (YEAR)
COLUMN E (MONTH)
I need to update the COLUMN A in this example to 0 where it is NULL. As you can see, it is not part of the Primary Key. So, should I build an index on the column? Run it by using the Year and Month columns?
Any ideas are greatly appreciated!!!
Thanks,
![[dazed] [dazed] [dazed]](/data/assets/smilies/dazed.gif)
I have a table that contains 19 million rows. I need to update 14 million of them to change a value from NULL to 0. Is there a quick way to do this?
TABLE
PK COLUMN 1
PK COLUMN 2
PK COLUMN 3
PK COLUMN 4
PK COLUMN 5
COLUMN A
COLUMN B
COLUMN C
COLUMN D (YEAR)
COLUMN E (MONTH)
I need to update the COLUMN A in this example to 0 where it is NULL. As you can see, it is not part of the Primary Key. So, should I build an index on the column? Run it by using the Year and Month columns?
Any ideas are greatly appreciated!!!
Thanks,
![[dazed] [dazed] [dazed]](/data/assets/smilies/dazed.gif)