General information
Forum:
Microsoft SQL Server
Category:
Database management
Hi Hans,
For a quick and cheap solution, you could do something like:-
UPDATE [TableName] SET
[fieldname1] = CASE WHEN [fieldname1] IS NULL THEN 0 ELSE [fieldname1] END,
[fieldname2] = CASE WHEN [fieldname2] IS NULL THEN '' ELSE [fieldname1] END
Regards
Ian.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only