jlwilliams1
Valued Member
Points: 56
More actions
May 30, 2003 at 4:52 pm
#101504
What query can I do to replace null values in columns in a table? For example, if I have a table called Master and in the Document column, I have null values, how can I replace the null values with ""? Thanks.
Andy Warren
SSC Guru
Points: 119902
May 30, 2003 at 5:01 pm
#459276
update master set document = '' where document is null
Andy
http://www.sqlservercentral.com/columnists/awarren/
AndySQLAndy - My Blog!Connect with me on LinkedInFollow me on Twitter
padmakumar_pga
Right there with Babe
Points: 766
June 2, 2003 at 12:00 pm
#459397
u can use update statement .
update Table set column=value where column is null
if u r adding a new column in an existing table u can avoid null using with value
Alter Table TableName
Add column Datatype Default(value) with Values
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply