Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 Update script issue

Author  Topic 

rudman
Starting Member

1 Post

Posted - 2008-01-09 : 02:02:48
Can any one help me with the following problem, I would like to copy Data from Field1 to Field2 where either of the Fields are 'Null'
the following statement returns 0 records:

update postcodes set tpstcde = spstcde where spstcde =''

Regards

Roy

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-01-09 : 02:23:44
update postcodes set tpstcde = spstcde where spstcde IS NULL


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -